-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.am
121 lines (99 loc) · 3.34 KB
/
Makefile.am
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# First time, run:
#
# automake --add-missing --copy
# aclocal
CLEANFILES = *.rpm *.gz *.bz2 aclocal.m4 glade/*.bak configure Makefile.in *.out *.log packages/packages packages/generated packages/*.log
DESCRIPTION_SHORT = "Unused: Defined here so the multi-line defintion will not break 'Makefile'"
DESCRIPTION_LONG = $(DESCRIPTION_SHORT)
DESCRIPTION_LONG_DEB = $(DESCRIPTION_SHORT)
bin_SCRIPTS = \
usr/bin/autopoweroff-gui
sbin_SCRIPTS = \
sbin/autopoweroff-gui \
sbin/autopoweroffd \
sbin/autopoweroff-uninstall \
sbin/autopoweroff-upgrade
pythondir=${datadir}/autopoweroff/python/modules
python_DATA = \
python/modules/*.py
gladedir=${datadir}/glade
glade_DATA = \
glade/autopoweroff.glade \
glade/autopoweroff.trans
desktopdir=${datarootdir}/applications
desktop_DATA = \
usr/share/applications/autopoweroff.desktop
pixmapsdir=${datadir}/pixmaps
pixmaps_DATA = \
pixmaps/autopoweroff-14x14.png \
pixmaps/autopoweroff-192x192.png \
pixmaps/autopoweroff-64x64.png \
pixmaps/autopoweroff.svg
etcdir = $(sysconfdir)/autopoweroff
etc_DATA = etc/autopoweroff/autopoweroff.conf \
etc/autopoweroff/autopoweroff-metadata \
etc/autopoweroff/autopoweroff-logging.conf \
etc/autopoweroff/autopoweroff-logging-debug.conf
polkitdir = $(datarootdir)/polkit-1/actions
polkit_DATA = usr/share/polkit-1/actions/com.github.deragon.autopoweroff.policy
pamdir = $(sysconfdir)/pam.d
pam_DATA = etc/pam.d/autopoweroff
autosystemddir = $(sysconfdir)/systemd/system
autosystemd_SCRIPTS = \
etc/systemd/system/autopoweroff.service
autoinitdir = $(sysconfdir)/init.d
autoinit_SCRIPTS = \
etc/init.d/autopoweroff.lsb \
etc/init.d/autopoweroff.rc-status \
etc/init.d/autopoweroff.redhat
doc_DATA = \
AUTHORS \
COPYING \
doc/CHANGELOG.md \
INSTALL \
NEWS \
README.md
EXTRA_DIST = \
${bin_SCRIPTS} \
${sbin_SCRIPTS} \
${python_DATA} \
${autosystemd_SCRIPTS} \
${autoinit_SCRIPTS} \
${glade_DATA} \
${desktop_DATA} \
${pixmaps_DATA} \
${pam_DATA} \
${etc_DATA} \
${polkit_DATA} \
doc/autopoweroff_cfg-config.png \
doc/autopoweroff_cfg-statusandcmd.png \
doc/README.md \
doc/CHANGELOG.md \
doc/COPYING \
postinstall \
doc/generate-doc
# Call this target to build *.deb, *.rpm and *.tar.gz files for
# distribution.
build: dist
clean-generic:
-test -z "$(CLEANFILES)" || rm -rf $(CLEANFILES)
rm -rf doc/out autom4te.cache
find . \
-name "*.pyc" -o \
-name "*.log" \
-exec rm -f {} \;
# dist-exec-hook:
# echo "dist-exec-hook called."
# install-exec-hook target is called after binaries are installed, but
# before the other files are.
# install-exec-hook:
# echo "install-exec-hook called."
# install-data-hook target is called after binaries and data files (thus
# all files) are installed.
install-data-hook:
echo "install-data-hook called."
./postinstall
# The following 'export' command must be at the end of the file to work.
# If moved elsewhere, for some reason the generated Makefile will contain
# a bad export statement and will fail.
export