diff options
| author | Jason D. McCormick <jason@mfamily.org> | 2023-12-20 16:47:37 -0500 |
|---|---|---|
| committer | Jason D. McCormick <jason@mfamily.org> | 2023-12-20 16:47:37 -0500 |
| commit | 62bca1b61296ac551574818c5021188913678168 (patch) | |
| tree | 3224e3bdd527bb2f9253c097512ffd319f4caeed /etc/Makefile | |
| parent | 93f370195a4178aefce312027ad042559dd51a64 (diff) | |
updated mf-backup, add Makefiles
Diffstat (limited to 'etc/Makefile')
| -rw-r--r-- | etc/Makefile | 14 |
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 $< $@ + + |
