Add imagex symlink on UNIX
authorEric Biggers <ebiggers3@gmail.com>
Mon, 20 May 2013 18:32:34 +0000 (13:32 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 20 May 2013 18:32:34 +0000 (13:32 -0500)
Makefile.am

index 45a85af..87f8798 100644 (file)
@@ -155,11 +155,13 @@ endif
 install-exec-hook:
        if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
                cd $(DESTDIR)$(bindir) && mv -f imagex "@IMAGEX_PROGNAME@"; \
+               cd $(DESTDIR)$(bindir) && ln -s "@IMAGEX_PROGNAME@" imagex; \
        fi
 
 uninstall-hook:
        if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
                cd $(DESTDIR)$(bindir) && rm -f "@IMAGEX_PROGNAME@"; \
+               cd $(DESTDIR)$(bindir) && rm -f imagex; \
        fi
 
 dist_bin_SCRIPTS = programs/mkwinpeimg