summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..57e12f1
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,13 @@
+prefix ?= /usr
+docdir ?= $(prefix)/share/doc/mfamily-scripts
+
+DOC_FILES = $(filter-out Makefile, $(wildcard *))
+DOC_INSTALLABLES = $(patsubst %, $(DESTDIR)$(docdir)/%, $(DOC_FILES))
+
+INSTALLABLES = $(DOC_INSTALLABLES)
+
+.PHONY: install
+install: $(INSTALLABLES)
+
+$(DESTDIR)$(docdir)/%: %
+ install -D -m 0644 $< $@