forked from deragon/autopoweroff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
149 lines (123 loc) · 4.01 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# First time, run:
#
# automake --add-missing --copy
# aclocal
CLEANFILES = *.rpm *.gz *.bz2 aclocal.m4 glade/*.bak configure Makefile.in *.out *.log 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 \
packages/rpm/buildrpm \
postinstall \
packages/rpm/${PACKAGE}.spec.in \
doc/generate-doc
deb:
export PACKAGE=${PACKAGE}; \
export VERSION=${VERSION}; \
cd packages/deb; \
builddeb --make
rpm: dist
export PACKAGE=${PACKAGE}; \
export VERSION=${VERSION}; \
mv ${PACKAGE}-${VERSION}.tar.gz packages/rpm; \
cd packages/rpm; \
buildrpm --make
# Call this target to build *.deb, *.rpm and *.tar.gz files for
# distribution.
build: deb rpm dist
transfer:
./ftp-transfer ${PACKAGE} ${VERSION}
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
# if [ ${INSTALLTYPE} != "RPM" ]; then \
# if [ `id -u` != "0" ]; then \
# echo -e "\nThe installation can only proceed under the root user.\n"; \
# exit 1; \
# else \
# echo -e "\nProceeding with the installation.\n"; \
# #lmwreplica-installer \
# fi \
# fi
# 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