Tom Willemsen
d7a622d4ba
Change the directory structure and add a bunch of Makefiles to make it easy to install gitto. Also add a utility to run gitto in its current state.
20 lines
414 B
Makefile
20 lines
414 B
Makefile
export DESTDIR ?= /usr
|
|
|
|
dirs = src gitto
|
|
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
|