Tom Willemse
aa0accc977
Installs the ZSH completion module into `DESTDIR/shar/zsh/site-functions/_gitto'.
20 lines
418 B
Makefile
20 lines
418 B
Makefile
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
|