mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
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.
This commit is contained in:
parent
4d90f28bf9
commit
d4886dbe64
17
Makefile.in
17
Makefile.in
@ -20,14 +20,14 @@ MAKE := $(shell which $(MAKE) || type -p $(MAKE) || echo /usr/bin/make)
|
|||||||
|
|
||||||
build: build-bin build-lib build-doc
|
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
|
clean: clean-bin clean-lib clean-doc
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
@rm -f Makefile
|
@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
|
# Specific make rules
|
||||||
@ -69,9 +69,9 @@ clean-doc:
|
|||||||
|
|
||||||
# If using localy, don't install
|
# If using localy, don't install
|
||||||
install-local-test:
|
install-local-test:
|
||||||
@if [ "$(LOCAL)" = "1" ]; then \
|
@if [ "$(LOCAL)" = "1" ]; then \
|
||||||
echo "You're using local copy as runtime. You can't install."; \
|
echo "You're using local copy as runtime. You can't (un)install."; \
|
||||||
false; \
|
false; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install-bin: install-local-test $(BINDIR)
|
install-bin: install-local-test $(BINDIR)
|
||||||
@ -118,13 +118,12 @@ $(BINDIR) $(LIBDIR) $(DOCDIR) $(MANDIR)::
|
|||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
# Uninstall rules
|
# Uninstall rules
|
||||||
|
|
||||||
uninstall-bin:
|
uninstall-bin: install-local-test
|
||||||
@rm -f $(BINDIR)/ct-ng
|
@rm -f $(BINDIR)/ct-ng
|
||||||
@rm -f $(BINDIR)/ct-ng.extract-config
|
|
||||||
|
|
||||||
uninstall-lib:
|
uninstall-lib: install-local-test
|
||||||
@rm -rf $(LIBDIR)
|
@rm -rf $(LIBDIR)
|
||||||
|
|
||||||
uninstall-doc:
|
uninstall-doc: install-local-test
|
||||||
@rm -rf $(DOCDIR)
|
@rm -rf $(DOCDIR)
|
||||||
@rm -f $(MANDIR)/ct-ng.1
|
@rm -f $(MANDIR)/ct-ng.1
|
||||||
|
Loading…
Reference in New Issue
Block a user