summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-30 19:31:26 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-30 19:31:26 -0500
commit27f1e6d6763a8a322070c9bdf377bb347896188d (patch)
treec9beca60ca64f1a0caa66c915d6e7c4a478bea09
parentba1cae8a6dc3c4860df236e82055f5b01f8f3ff0 (diff)
Makefile: update to autothing v3
-rw-r--r--Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index fbde21c..0c48056 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,20 @@
-# Copyright 2016 Luke Shumaker
+# Copyright 2016-2017 Luke Shumaker
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING file for more details.
+PACKAGE = pristine-etc-keeper
+VERSION = 20170128
+
topsrcdir = .
topoutdir = .
include $(topsrcdir)/build-aux/Makefile.head.mk
# The core of pristine-etc-keeper
-std.sys_files += /etc/etckeeper/pristine/drain
-std.sys_files += /etc/etckeeper/pristine/fill
-std.sys_files += /var/lib/pristine-etc/chroot.lock
-std.sys_files += /var/lib/pristine-etc/spool.lock
+files.sys.all += /etc/etckeeper/pristine/drain
+files.sys.all += /etc/etckeeper/pristine/fill
+files.sys.all += /var/lib/pristine-etc/chroot.lock
+files.sys.all += /var/lib/pristine-etc/spool.lock
$(DESTDIR)/etc/etckeeper/pristine/%: $(srcdir)/%
install -Dm755 $< $@
@@ -20,26 +23,26 @@ $(DESTDIR)/var/lib/pristine-etc/%.lock:
touch $@
# Convenience symlinks in bindir
-std.sys_files += /usr/bin/pristine-etc-keeper
+files.sys.all += /usr/bin/pristine-etc-keeper
$(DESTDIR)/usr/bin/pristine-etc-keeper: $(DESTDIR)/etc/etckeeper/pristine/fill
mkdir -p $(@D)
ln -srfT $< $@
# pacman integration
-std.sys_files += /usr/share/libalpm/hooks/zz-pristine-etc-keeper-post-install.hook
+files.sys.all += /usr/share/libalpm/hooks/zz-pristine-etc-keeper-post-install.hook
$(DESTDIR)/usr/share/libalpm/hooks/%.hook: %.hook
install -Dm644 $< $@
# systemd integration
-std.sys_files += /usr/lib/systemd/system/pristine-etc-keeper.service
+files.sys.all += /usr/lib/systemd/system/pristine-etc-keeper.service
$(DESTDIR)/usr/lib/systemd/system/%: $(srcdir)/%
install -Dm644 $< $@
# Documentation
-std.sys_files += /usr/share/doc/pristine-etc-keeper/README.md
+files.sys.all += /usr/share/doc/pristine-etc-keeper/README.md
$(DESTDIR)/usr/share/doc/pristine-etc-keeper/%: %
install -Dm644 $< $@