gitto/Makefile

25 lines
526 B
Makefile
Raw Normal View History

2013-05-27 22:30:00 +02:00
INSTALL = install -D
2013-05-27 22:30:00 +02:00
export DESTDIR ?= /usr/local
export INSTALL_PROGRAM = $(INSTALL)
export INSTALL_DATA = $(INSTALL) -m 644
dirs = doc 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