From d7a622d4ba8b187a6f35a7dc5b054148aba2469f Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 1 Jul 2012 01:42:15 +0200 Subject: Add Makefiles, utility 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. --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5c2306a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +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 -- cgit v1.3-2-g0d8e