summaryrefslogtreecommitdiff
path: root/etc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/Makefile')
-rw-r--r--etc/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile
new file mode 100644
index 0000000..f2d6243
--- /dev/null
+++ b/etc/Makefile
@@ -0,0 +1,14 @@
+sysconfdir ?= /etc
+
+ETC_FILES = $(filter-out Makefile , $(wildcard *))
+ETC_INSTALLABLES = $(patsubst %, $(DESTDIR)$(sysconfdir)/%, $(ETC_FILES))
+
+INSTALLABLES = $(ETC_INSTALLABLES)
+
+.PHONY: install
+install: $(INSTALLABLES)
+
+$(DESTDIR)$(sysconfdir)/%: %
+ install -D -m 0644 $< $@
+
+