1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-16 02:10:52 +00:00

Renamed [un]install goals to [un]avail.

The [un]install make goals have a rather fixed meaning for *ix users. The simple
symlinks provided here don't match the expectations users have from [un]install.
Therefore it is appropriate to rename them to "something" not tied to specific
expectations.
This commit is contained in:
Oliver Schmidt 2013-05-15 11:59:51 +02:00
parent f1817650b2
commit 352ceb166c
2 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@ all mostlyclean clean:
@$(MAKE) -C src --no-print-directory $@ @$(MAKE) -C src --no-print-directory $@
@$(MAKE) -C libsrc --no-print-directory $@ @$(MAKE) -C libsrc --no-print-directory $@
install uninstall bin: avail unavail bin:
@$(MAKE) -C src --no-print-directory $@ @$(MAKE) -C src --no-print-directory $@
lib: lib:
@ -14,6 +14,6 @@ lib:
%: %:
@$(MAKE) -C libsrc --no-print-directory $@ @$(MAKE) -C libsrc --no-print-directory $@
.PHONY: all mostlyclean clean install uninstall bin lib .PHONY: all mostlyclean clean avail unavail bin lib
.SUFFIXES: .SUFFIXES:

View File

@ -26,7 +26,7 @@ LDLIBS += -lm
.SUFFIXES: .SUFFIXES:
.PHONY: all bin $(PROGS) mostlyclean clean install uninstall .PHONY: all bin $(PROGS) mostlyclean clean avail unavail
all bin: $(PROGS) all bin: $(PROGS)
@ -36,15 +36,15 @@ mostlyclean:
clean: clean:
$(RM) -r ../wrk ../bin $(RM) -r ../wrk ../bin
install: all avail: all
$(foreach prog,$(PROGS),$(INSTALL_recipe)) $(foreach prog,$(PROGS),$(AVAIL_recipe))
uninstall: unavail:
$(foreach prog,$(PROGS),$(UNINSTALL_recipe)) $(foreach prog,$(PROGS),$(UNAVAIL_recipe))
########## ##########
define INSTALL_recipe define AVAIL_recipe
ln -s $(abspath ../bin/$(prog)) /usr/local/bin/$(prog) ln -s $(abspath ../bin/$(prog)) /usr/local/bin/$(prog)
@ -52,7 +52,7 @@ endef
########## ##########
define UNINSTALL_recipe define UNAVAIL_recipe
$(RM) /usr/local/bin/$(prog) $(RM) /usr/local/bin/$(prog)