diff options
author | Tom Willemsen | 2012-07-01 01:42:15 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-07-01 01:42:15 +0200 |
commit | d7a622d4ba8b187a6f35a7dc5b054148aba2469f (patch) | |
tree | 2e12e4eb8d386fd2f2e0c1b1051c594670db3c4b /Makefile | |
parent | 5e17738e22b6d4907590614efe3d4cd122c5e2c4 (diff) | |
download | gitto-d7a622d4ba8b187a6f35a7dc5b054148aba2469f.tar.gz gitto-d7a622d4ba8b187a6f35a7dc5b054148aba2469f.zip |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 |