gitto/Makefile

21 lines
418 B
Makefile
Raw Normal View History

export DESTDIR ?= /usr
dirs = src gitto zsh
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