summaryrefslogtreecommitdiff
path: root/Makefile
blob: d92ccda59ef0a9845471fbd4715c0c67f3c15263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2016 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.

topsrcdir = .
topoutdir = .
include $(topsrcdir)/build-aux/Makefile.head.mk

std.sys_files += /etc/etckeeper/pristine-etc-keeper
std.sys_files += /etc/etckeeper/post-install.d/50pristine-etc-keeper
std.sys_files += /usr/lib/systemd/system/pristine-etc-keeper.service
std.sys_files += /usr/lib/systemd/system/pristine-etc-keeper.timer
std.sys_files += /var/lib/pristine-etc/lock
std.sys_files += /usr/share/doc/pristine-etc-keeper/README.md

$(DESTDIR)/etc/etckeeper/pristine-etc-keeper: $(srcdir)/pristine-etc-keeper
	install -Dm755 $< $@
$(DESTDIR)/etc/etckeeper/post-install.d/%: $(srcdir)/%.post-install
	install -Dm755 $< $@
$(DESTDIR)/usr/lib/systemd/system/%: $(srcdir)/%
	install -Dm644 $< $@
$(DESTDIR)/usr/share/doc/pristine-etc-keeper/%: %
	install -Dm644 $< $@
$(DESTDIR)/var/lib/pristine-etc/lock:
	mkdir -p $(@D)
	touch $@

include $(topsrcdir)/build-aux/Makefile.tail.mk