gitto/Makefile

31 lines
658 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))
2013-05-27 22:40:28 +02:00
clean-dirs = $(addprefix clean-,$(dirs))
2013-05-27 22:40:28 +02:00
.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs) \
clean $(clean-dirs)
all: $(dirs)
install: $(install-dirs)
uninstall: $(uninstall-dirs)
2013-05-27 22:40:28 +02:00
clean: $(clean-dirs)
$(dirs):
$(MAKE) -C $@/
$(install-dirs): install-%:
$(MAKE) -C $*/ install
$(uninstall-dirs): uninstall-%:
$(MAKE) -C $*/ uninstall
2013-05-27 22:40:28 +02:00
$(clean-dirs): clean-%:
$(MAKE) -C $*/ clean