summaryrefslogtreecommitdiff
blob: ce13f7c567236407c1e0d5075716ea01b3f529de (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
30
31
32
33
34
35
36
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = \
	udevdir=\$${libdir}/udev \
	--with-systemdsystemunitdir=\$${libdir}/systemd/system \
	--with-systemdsystemgeneratordir=\$${libdir}/systemd/system-generators

dist_sysctl_DATA = \
	sysctl.d/60-gentoo.conf
dist_tmpfiles_DATA = \
	tmpfiles.d/gentoo-run.conf
dist_systemdsystemunit_DATA = \
	mounts/var-lock.mount \
	mounts/var-run.mount
dist_systemdsystemgenerator_SCRIPTS = \
	system-generators/gentoo-local-generator

udevrulesdir = $(udevdir)/rules.d
udevrules_DATA = udev/40-gentoo.rules
dist_udevrules_DATA = udev/40-gentoo.rules

install-data-hook: \
	systemd-system-unit-install-hook

systemd-system-unit-install-hook:
	mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants
	$(LN_S) ../var-lock.mount ../var-run.mount \
		$(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/

DISTCLEANFILES = \
	$(systemdsystemunit_DATA)

EXTRA_DIST = NEWS
NEWS: configure.ac Makefile.am
	git for-each-ref refs/tags --sort '-*committerdate' \
		--format '# %(tag) (%(*committerdate:short))%0a%(contents:body)' \
		> NEWS