aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-01-06 14:36:51 +0100
committerGravatar Tom Willemsen2013-01-06 14:36:51 +0100
commit58a7c046d22579cc5156fb34429e5ea7ea5a5526 (patch)
treeb0c136e3bdf6ea2d0296d712197b108f074f6f49 /Makefile
parent8d9615f72aa090cf45f156400d7c02d33837c1af (diff)
downloadmarkam-58a7c046d22579cc5156fb34429e5ea7ea5a5526.tar.gz
markam-58a7c046d22579cc5156fb34429e5ea7ea5a5526.zip
Add install target to Makefile
Installs everything under `DESTDIR', which is `/usr/local' by default.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e796ed8..ebe51e9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,15 @@
-dirs = src doc
+export DESTDIR ?= /usr/local
+
+dirs = src doc conkeror
+install-dirs = $(addprefix install-,$(dirs))
.PHONY: all $(dirs)
all: $(dirs)
+install: $(install-dirs)
+
$(dirs):
$(MAKE) -C $@
+
+$(install-dirs): install-%:
+ $(MAKE) -C $*/ install