diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-07-28 11:57:42 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-07-28 11:57:42 (GMT) |
commit | d4886dbe640711091f44cc5b2bfa3d82832e3c44 (patch) | |
tree | 7f012fb0343f9aa0181caeb1b5dd55eccb44fe5b | |
parent | 4d90f28bf995596100845246d99bc83d190bc639 (diff) |
Fix install: man page was not being installed.
Fix uninstall: dont't uninstall if using local copy, don't try to remove non-existant files.
-rw-r--r-- | Makefile.in | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in index 184c6fd..1784f4e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -20,14 +20,14 @@ MAKE := $(shell which $(MAKE) || type -p $(MAKE) || echo /usr/bin/make) build: build-bin build-lib build-doc -install: install-local-test build install-bin install-lib install-doc +install: install-local-test build install-bin install-lib install-doc install-man clean: clean-bin clean-lib clean-doc distclean: clean @rm -f Makefile -uninstall: uninstall-bin uninstall-lib uninstall-doc +uninstall: install-local-test uninstall-bin uninstall-lib uninstall-doc uninstall-man ############################################################################### # Specific make rules @@ -69,9 +69,9 @@ clean-doc: # If using localy, don't install install-local-test: - @if [ "$(LOCAL)" = "1" ]; then \ - echo "You're using local copy as runtime. You can't install."; \ - false; \ + @if [ "$(LOCAL)" = "1" ]; then \ + echo "You're using local copy as runtime. You can't (un)install."; \ + false; \ fi install-bin: install-local-test $(BINDIR) @@ -118,13 +118,12 @@ $(BINDIR) $(LIBDIR) $(DOCDIR) $(MANDIR):: #-------------------------------------- # Uninstall rules -uninstall-bin: +uninstall-bin: install-local-test @rm -f $(BINDIR)/ct-ng - @rm -f $(BINDIR)/ct-ng.extract-config -uninstall-lib: +uninstall-lib: install-local-test @rm -rf $(LIBDIR) -uninstall-doc: +uninstall-doc: install-local-test @rm -rf $(DOCDIR) @rm -f $(MANDIR)/ct-ng.1 |