5 @echo may be interested in
: install-all
8 TOOLS
= gexifcomment gtail xgcal xstopper perspect
10 TARGET_FILES
= $(foreach tool
,$(TOOLS
),$(PREFIX
)/$(tool
))
11 UNINSTALL_TARGETS
= $(foreach tool
,$(TOOLS
),UNINSTALL
/$(tool
))
15 @
[ ! -e
$(1) ] ||
rm -v
$(1)
19 install-all
: $(TARGET_FILES
)
22 uninstall-all
: $(UNINSTALL_TARGETS
)
26 $(call rid
,$(PREFIX
)/$(notdir $@
))
27 .PHONY
: $(UNINSTALL_TOOLS
)
30 $(call rid
,/usr
/share
/xgcal
/timezones.png
)
31 $(call rid
,/usr
/share
/xgcal
)
32 $(call rid
,$(PREFIX
)/xgcal
)
34 $(PREFIX
)/xgcal
: DEPENDENCY
/sunclock DEPENDENCY
/gcal DEPENDENCY
/solartime
/usr
/share
/xgcal
/timezones.png
36 DEPENDENCY
/sunclock DEPENDENCY
/gcal DEPENDENCY
/solartime
:
38 .PHONY
: DEPENDENCY
/sunclock DEPENDENCY
/gcal DEPENDENCY
/solartime
40 /usr
/share
/xgcal
/timezones.png
: timezones.png |
/usr
/share
/xgcal
46 $(TARGET_FILES
): $(PREFIX
)/%: %