undone/Makefile

21 lines
415 B
Makefile
Raw Permalink Normal View History

2012-08-15 00:24:32 +02:00
export DESTDIR ?= /usr
dirs = src undone
install-dirs = $(addprefix install-,$(dirs))
uninstall-dirs = $(addprefix uninstall-,$(dirs))
.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs)
all: $(dirs)
install: $(install-dirs)
uninstall: $(uninstall-dirs)
$(dirs):
$(MAKE) -C $@/
$(install-dirs): install-%:
$(MAKE) -C $*/ install
$(uninstall-dirs): uninstall-%:
$(MAKE) -C $*/ uninstall