summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 184c221dc201ed79b304d3391623c9d8151ed6d5 (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
37
38
39
40
41
42
43
44
pm_utils_bindir = $(libdir)/pm-utils/bin

pm_utils_bin_PROGRAMS =		\
	pm-pmu			\
	pm-reset-swap

pm_utils_bin_SCRIPTS =		\
	pm-action

pm_utils_usr_bindir = $(bindir)

pm_utils_usr_bin_SCRIPTS =	\
	pm-is-supported

pm_pmu_SOURCES = 		\
	pm-pmu.c

pm_reset_swap_SOURCES = 	\
	pm-reset-swap.c

extradir = $(sbindir)

extra_SCRIPTS =			\
	pm-powersave

acpowerdir = $(bindir)

acpower_SCRIPTS =		\
	on_ac_power

install-exec-hook:
	-mkdir -p $(DESTDIR)$(sbindir)
	-ln -s $(pm_utils_bindir)/pm-action $(DESTDIR)$(sbindir)/pm-suspend
	-ln -s $(pm_utils_bindir)/pm-action $(DESTDIR)$(sbindir)/pm-hibernate
	-ln -s $(pm_utils_bindir)/pm-action $(DESTDIR)$(sbindir)/pm-suspend-hybrid

EXTRA_DIST =				\
	$(extra_SCRIPTS)		\
	$(acpower_SCRIPTS)		\
	$(pm_utils_bin_SCRIPTS)		\
	$(pm_utils_usr_bin_SCRIPTS)

clean-local :
	rm -f *~