summaryrefslogtreecommitdiff
path: root/pm/Makefile.am
blob: abfa3ff17eece43ce94e1355460f61e126ec442a (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
SUBDIRS =		\
	sleep.d 	\
	power.d		\
	module.d

pm_libdir = $(libdir)/pm-utils
pm_sysconfdir = $(sysconfdir)/pm

pm_lib_SCRIPTS = functions pm-functions

dist_pm_lib_DATA = defaults

script_in_files = functions.in pm-functions.in

CLEANFILES =  $(script_in_files:.in=)

EXTRA_DIST =  $(script_in_files)

install-exec-local:
	-mkdir $(DESTDIR)$(sysconfdir)/pm/config.d

do_subst = sed -e 's,[@]PM-UTILS-LIBDIR[@],$(pm_libdir),g' \
	   -e 's,[@]PM-UTILS-SYSCONFDIR[@],$(pm_sysconfdir),g'

SUFFIXES = .in

.in:
	$(do_subst) $< >$@
	chmod +x $@

clean-local :
	rm -f *~