cake
/
p7utils
Archived
1
0
Fork 0

Added other .exe targets.

This commit is contained in:
Thomas Touhey 2017-01-27 21:56:44 +01:00
parent 23e4a7bd7b
commit fbc0eb46c4
1 changed files with 8 additions and 6 deletions

View File

@ -151,11 +151,11 @@ define make-binary-rules
$(call bcmd,ld,$$@,$(LD) -o $$@ $$^ $(LDFLAGS_$1))
all-$1 all-$1.exe: $(CHECKCFG) $1$(if $(FOR_WINDOWS),.exe) all-doc-$1
clean-$1:
clean-$1 clean-$1.exe:
$(call rmsg,Removing $1 and its objects directory.)
$(call qcmd,$(RM) -r $(OBJDIR)/$1)
$(call qcmd,$(RM) $1$(if $(FOR_WINDOWS),.exe))
re-$1: clean-$1 all-$1
re-$1 re-$1.exe: clean-$1 all-$1
endef
$(foreach bin,$(BINARIES),\
$(eval $(call make-binary-rules,$(bin))))
@ -176,12 +176,13 @@ $(eval $(call make-binary-rules,$(bin))))
# Install a binary
define make-installbinary-rule
install-$1: $(CHECKCFG) all-$1 $(if $(INSTALL_MANPAGES),install-doc-$1)
install-$1 install-$1.exe: $(CHECKCFG) \
all-$1 $(if $(INSTALL_MANPAGES),install-doc-$1)
$(call imsg,Installing $1$(if $(FOR_WINDOWS),.exe).)
$(call qcmd,$(INSTALL) -m 755 -d "$(IBINDIR)")
$(call qcmd,$(INSTALL) -m 755 -t "$(IBINDIR)" $1$(if $(FOR_WINDOWS),.exe))
uninstall-$1: $(CHECKCFG) uninstall-doc-$1
uninstall-$1 uninstall-$1.exe: $(CHECKCFG) uninstall-doc-$1
$(call rmsg,Uninstalling $1)
$(call qcmd,$(RM) "$(IBINDIR)/$1"{,.exe})
endef
@ -196,8 +197,9 @@ $(eval $(call make-installbinary-rule,$(bin))))
.PHONY: all-bins mostlyclean-bins mclean-bins clean-bins re-bins
.PHONY: install-bins uninstall-bins
.PHONY: $(foreach b,$(BINARIES),all-$(b) all-$(b).exe clean-$(b) re-$(b) \
install-$(b) uninstall-$(b))
.PHONY: $(foreach b,$(BINARIES),all-$(b) all-$(b).exe \
clean-$(b) clean-$(b).exe re-$(b) re-$(b).exe \
install-$(b) install-$(b).exe uninstall-$(b) uninstall-$(b).exe)
#******************************************************************************#
# Documentation-related #
#******************************************************************************#