File: Makefile.am

package info (click to toggle)
gsmartcontrol 1.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,000 kB
  • sloc: cpp: 185,389; sh: 4,261; makefile: 397
file content (248 lines) | stat: -rw-r--r-- 11,961 bytes parent folder | download
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248

# Add autoconf.m4 directory to local macro search path
ACLOCAL_AMFLAGS = -I autoconf.m4

SUBDIRS = data debian.dist src


# These files are actually needed for compilation.
noinst_DATA = AUTHORS.txt LICENSE_gsmartcontrol.txt


# For the files to be bundled with the distribution, specify them in
# one of the following.

# nobase_ preserves their directory names.
nobase_dist_doc_DATA = contrib/cron-based_noadmin/README \
	contrib/cron-based_noadmin/cron_gather_smart.sh \
	contrib/cron-based_noadmin/crontab.example \
	contrib/cron-based_noadmin/smartctl_subst.sh


# Extra files bundled with distribution.
# file2csource.sh is needed for building but not installed.
EXTRA_DIST = COPYING INSTALL configure autogen.sh \
	gsmartcontrol.kdev4 \
	file2csource.sh \
	gsmartcontrol.spec



# rpm support

src-rpm: dist
	rpmbuild -ts $(distdir).tar.bz2


# NSIS installer support.
# Requires installed NSIS, smartctl-nc.exe, smartctl.exe, update-smart-drivedb.exe.
# Gtkmm and pcre dlls are required if linking against them.
# dos2unix on build machine.
# Execute only with win32 build present.

WIN_ZIP_NAME = $(PACKAGE)-$(VERSION)-@WINDOWS_SUFFIX@


win-dist: win-dist-nocleanup win-dist-cleanup

win-dist-nocleanup: win-dist-prepare nsis-dist-nocleanup win-zip-dist-nocleanup

win-dist-cleanup: win-zip-dist-cleanup nsis-dist-cleanup
	rm -rf win-dist

win-dist-clean: win-dist-cleanup
	rm -f gsmartcontrol-*.exe gsmartcontrol-*.zip


win-dist-prepare-all: nsis-dist-prepare win-zip-dist-prepare


#	All of GTK+
GTK_BIN_FILES = gdk-pixbuf-query-loaders.exe \
	gspawn-win32-helper-console.exe \
	gspawn-win32-helper.exe \
	gspawn-win64-helper-console.exe \
	gspawn-win64-helper.exe \
	gtk-query-immodules-3.0.exe \
	gtk-update-icon-cache-3.0.exe \
	libatk-1.*.dll \
	libatkmm-1.*.dll \
	libbz2-*.dll \
	libcairo-*.dll \
	libcairomm-1*.dll \
	libepoxy-*.dll \
	libffi-*.dll \
	libexpat-*.dll \
	libfontconfig-*.dll \
	libfreetype-*.dll \
	libgdk-3*.dll \
	libgdk_pixbuf-2.*.dll \
	libgdkmm-3.*.dll \
	libgio-2.*.dll \
	libgiomm-2.*.dll \
	libglib-2.*.dll \
	libglibmm*2.*.dll \
	libgmodule-2.*.dll \
	libgobject-2.*.dll \
	libgraphite*.dll \
	libgthread-2.*.dll \
	libgtk-3*.dll \
	libgtkmm-3*.dll \
	libharfbuzz*.dll \
	libiconv*.dll \
	libintl*.dll \
	libjasper*.dll \
	libjpeg*.dll \
	liblzma*.dll \
	libpango*-1.*.dll \
	libpixman*.dll \
	libpng16-*.dll \
	libsigc-2.*.dll \
	libstdc++-*.dll \
	libtiff-*.dll \
	libwinpthread-*.dll \
	libxml2-*.dll \
	zlib1.dll


# Don't strip smartctl (it will only change the header), and
# don't strip update-smart-drivedb (it will break its CRC check).
win-dist-prepare: all
	$(MKDIR_P) win-dist
	cp $(top_srcdir)/data/icon_*.png win-dist/

	$(MKDIR_P) win-dist/doc
	cp data/nsis/distribution.txt win-dist/doc/
	cp $(top_srcdir)/AUTHORS.txt $(top_srcdir)/LICENSE_* $(top_srcdir)/README.txt win-dist/doc/
	cp $(top_srcdir)/NEWS win-dist/doc/NEWS.txt

	cp src/gsmartcontrol.exe src/gsmartcontrol.exe.manifest win-dist/

	unix2dos win-dist/doc/*.txt

	cp -p "@WINDOWS_SYSROOT@"/bin/drivedb.h win-dist/
	cp -p "@WINDOWS_SYSROOT@"/bin/smartctl-nc.exe win-dist/
	cp -p "@WINDOWS_SYSROOT@"/bin/smartctl.exe win-dist/
	cp -p "@WINDOWS_SYSROOT@"/bin/update-smart-drivedb.exe win-dist/

	for file in $(GTK_BIN_FILES); do for f in "@WINDOWS_SYSROOT@/bin/"$$file; do if test -f "$${f}"; then cp -p "$${f}" win-dist/; fi; done; done

#	<prefix>/etc/gtk-3.0/ should contain settings.ini with a win32 theme.
	$(MKDIR_P) win-dist/etc
	$(MKDIR_P) win-dist/etc/fonts
	$(MKDIR_P) win-dist/etc/gtk-3.0
	cp -p "@WINDOWS_SYSROOT@"/etc/fonts/fonts.conf win-dist/etc/fonts/
#	cp -p "@WINDOWS_SYSROOT@"/etc/gtk-3.0/im-multipress.conf win-dist/etc/gtk-3.0/
	cp -p "@WINDOWS_SYSROOT@"/etc/gtk-3.0/settings.ini win-dist/etc/gtk-3.0/

	$(MKDIR_P) win-dist/share
	cp -p -r "@WINDOWS_SYSROOT@"/share/themes win-dist/share

#	needed for file chooser
	$(MKDIR_P) win-dist/share/glib-2.0
	cp -p -r "@WINDOWS_SYSROOT@"/share/glib-2.0/schemas win-dist/share/glib-2.0

# 	$(MKDIR_P) win-dist/share/icons
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/hicolor win-dist/share/icons

#	needed for window titlebar (if using client-side decorations),
#	tree sorting indicators, GUI icons.
	$(MKDIR_P) win-dist/share/icons/Adwaita/16x16/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/16x16/actions/window-close-symbolic.symbolic.png win-dist/share/icons/Adwaita/16x16/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/16x16/actions/window-maximize-symbolic.symbolic.png win-dist/share/icons/Adwaita/16x16/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/16x16/actions/window-minimize-symbolic.symbolic.png win-dist/share/icons/Adwaita/16x16/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/16x16/actions/window-restore-symbolic.symbolic.png win-dist/share/icons/Adwaita/16x16/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/16x16/actions/pan-down-symbolic.symbolic.png win-dist/share/icons/Adwaita/16x16/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/16x16/actions/pan-up-symbolic.symbolic.png win-dist/share/icons/Adwaita/16x16/actions
	$(MKDIR_P) win-dist/share/icons/Adwaita/16x16/status
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/16x16/status/dialog-information.png win-dist/share/icons/Adwaita/16x16/status
	$(MKDIR_P) win-dist/share/icons/Adwaita/22x22/status
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/22x22/status/dialog-information.png win-dist/share/icons/Adwaita/22x22/status
	$(MKDIR_P) win-dist/share/icons/Adwaita/24x24/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/24x24/actions/window-close-symbolic.symbolic.png win-dist/share/icons/Adwaita/24x24/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/24x24/actions/window-maximize-symbolic.symbolic.png win-dist/share/icons/Adwaita/24x24/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/24x24/actions/window-minimize-symbolic.symbolic.png win-dist/share/icons/Adwaita/24x24/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/24x24/actions/window-restore-symbolic.symbolic.png win-dist/share/icons/Adwaita/24x24/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/24x24/actions/pan-down-symbolic.symbolic.png win-dist/share/icons/Adwaita/24x24/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/24x24/actions/pan-up-symbolic.symbolic.png win-dist/share/icons/Adwaita/24x24/actions
	$(MKDIR_P) win-dist/share/icons/Adwaita/24x24/status
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/24x24/status/dialog-information.png win-dist/share/icons/Adwaita/24x24/status
	$(MKDIR_P) win-dist/share/icons/Adwaita/32x32/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/32x32/actions/window-close-symbolic.symbolic.png win-dist/share/icons/Adwaita/32x32/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/32x32/actions/window-maximize-symbolic.symbolic.png win-dist/share/icons/Adwaita/32x32/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/32x32/actions/window-minimize-symbolic.symbolic.png win-dist/share/icons/Adwaita/32x32/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/32x32/actions/window-restore-symbolic.symbolic.png win-dist/share/icons/Adwaita/32x32/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/32x32/actions/pan-down-symbolic.symbolic.png win-dist/share/icons/Adwaita/32x32/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/32x32/actions/pan-up-symbolic.symbolic.png win-dist/share/icons/Adwaita/32x32/actions
	$(MKDIR_P) win-dist/share/icons/Adwaita/32x32/status
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/32x32/status/dialog-information.png win-dist/share/icons/Adwaita/32x32/status
	$(MKDIR_P) win-dist/share/icons/Adwaita/48x48/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/48x48/actions/window-close-symbolic.symbolic.png win-dist/share/icons/Adwaita/48x48/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/48x48/actions/window-maximize-symbolic.symbolic.png win-dist/share/icons/Adwaita/48x48/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/48x48/actions/window-minimize-symbolic.symbolic.png win-dist/share/icons/Adwaita/48x48/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/48x48/actions/window-restore-symbolic.symbolic.png win-dist/share/icons/Adwaita/48x48/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/48x48/actions/pan-down-symbolic.symbolic.png win-dist/share/icons/Adwaita/48x48/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/48x48/actions/pan-up-symbolic.symbolic.png win-dist/share/icons/Adwaita/48x48/actions
	$(MKDIR_P) win-dist/share/icons/Adwaita/48x48/status
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/48x48/status/dialog-information.png win-dist/share/icons/Adwaita/48x48/status
	$(MKDIR_P) win-dist/share/icons/Adwaita/64x64/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/64x64/actions/window-close-symbolic.symbolic.png win-dist/share/icons/Adwaita/64x64/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/64x64/actions/window-maximize-symbolic.symbolic.png win-dist/share/icons/Adwaita/64x64/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/64x64/actions/window-minimize-symbolic.symbolic.png win-dist/share/icons/Adwaita/64x64/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/64x64/actions/window-restore-symbolic.symbolic.png win-dist/share/icons/Adwaita/64x64/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/64x64/actions/pan-down-symbolic.symbolic.png win-dist/share/icons/Adwaita/64x64/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/64x64/actions/pan-up-symbolic.symbolic.png win-dist/share/icons/Adwaita/64x64/actions
# 	$(MKDIR_P) win-dist/share/icons/Adwaita/64x64/status
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/64x64/status/dialog-information.png win-dist/share/icons/Adwaita/64x64/status
	$(MKDIR_P) win-dist/share/icons/Adwaita/96x96/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/96x96/actions/window-close-symbolic.symbolic.png win-dist/share/icons/Adwaita/96x96/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/96x96/actions/window-maximize-symbolic.symbolic.png win-dist/share/icons/Adwaita/96x96/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/96x96/actions/window-minimize-symbolic.symbolic.png win-dist/share/icons/Adwaita/96x96/actions
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/96x96/actions/window-restore-symbolic.symbolic.png win-dist/share/icons/Adwaita/96x96/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/96x96/actions/pan-down-symbolic.symbolic.png win-dist/share/icons/Adwaita/96x96/actions
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/96x96/actions/pan-up-symbolic.symbolic.png win-dist/share/icons/Adwaita/96x96/actions
# 	$(MKDIR_P) win-dist/share/icons/Adwaita/96x96/status
# 	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/96x96/status/dialog-information.png win-dist/share/icons/Adwaita/96x96/status
	$(MKDIR_P) win-dist/share/icons/Adwaita/256x256/status
	cp -p "@WINDOWS_SYSROOT@"/share/icons/Adwaita/256x256/status/dialog-information.png win-dist/share/icons/Adwaita/256x256/status

#	other
	cp -p "@WINDOWS_SYSROOT@"/bin/libgcc_s_*.dll win-dist/
	cp -p "@WINDOWS_SYSROOT@"/bin/libpcre-1.dll win-dist/
	cp -p "@WINDOWS_SYSROOT@"/bin/libpcrecpp-0.dll win-dist/


nsis-dist-prepare: win-dist-prepare
	cp -a win-dist nsis-dist
	cp $(top_srcdir)/data/gsmartcontrol.ico nsis-dist/
	cp data/nsis/*.nsi $(top_srcdir)/data/nsis/nsi_* nsis-dist/
	unix2dos nsis-dist/*.nsi

nsis-dist-nocleanup: nsis-dist-prepare
	cd nsis-dist && @NSIS_EXEC@ gsmartcontrol.nsi
	mv nsis-dist/$(PACKAGE)-$(VERSION)-@WINDOWS_SUFFIX@.exe .

nsis-dist-cleanup:
	rm -rf nsis-dist

nsis-dist: nsis-dist-prepare nsis-dist-nocleanup nsis-dist-cleanup


win-zip-dist-prepare: win-dist-prepare
	cp -a win-dist $(WIN_ZIP_NAME)

win-zip-dist-nocleanup: win-zip-dist-prepare
	zip -K -9r $(WIN_ZIP_NAME).zip $(WIN_ZIP_NAME)

win-zip-dist-cleanup:
	rm -rf $(WIN_ZIP_NAME)

win-zip-dist: win-zip-dist-prepare win-zip-dist-nocleanup win-zip-dist-cleanup




distclean-local: win-dist-clean