mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 21:57:48 +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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user