File: Makefile.am

package info (click to toggle)
lirc 0.10.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 8,364 kB
  • sloc: ansic: 26,717; cpp: 9,066; sh: 5,521; python: 4,362; makefile: 1,034; xml: 63
file content (453 lines) | stat: -rw-r--r-- 17,794 bytes parent folder | download | duplicates (2)
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS         = -I m4

CLEANFILES              = man/* html/* man-html/* driver-toc.xsl table.html \
                          api-docs.tar.gz NEWS.txt lirc.hwdb table.html \
                          doxygen*warning* ext-driver-toc.xsl

EXTRA_DIST              = Doxyfile manpage.xsl make-driver-toc.sh \
                          make_rel_symlink.py index.html plugindocs.mk \
                          fix-urls.sh doxypypy.py py_filter

if DEVEL
website                 = http://lirc.sf.net/lirc.org
else
website                 = http://lirc.org
endif

LIB_SRC                 = $(top_srcdir)/lib
PY_SRC                  = $(top_srcdir)/python-pkg/lirc
API_SRC                 = $(LIB_SRC)/*.c \
                          $(LIB_SRC)/*.h \
                          $(PY_SRC)/*.py \
                          $(LIB_SRC)/*.dox \
                          $(LIB_SRC)/*.doxhead

dist_noinst_SCRIPTS     = data2table data2hwdb

manpage_html            =
man_sources             =
nodist_man_MANS         =

if BUILD_XTOOLS
man_sources             += $(srcdir)/man-source/xmode2.1 \
                           $(srcdir)/man-source/irxevent.1
nodist_man_MANS         += man/xmode2.1 man/irxevent.1
manpage_html            += man-html/irxevent.html man-html/xmode2.html
endif

dist_doc_DATA           = irxevent.keys

if HAVE_DOXYGEN
dist_doc_DATA           += api-docs.tar.gz
endif

websitedir              = $(docdir)/lirc.org
dist_website_DATA       = $(website_files)

plugindocsdir           = $(docdir)/plugindocs
dist_plugindocs_DATA    = README $(pluginfiles)

website_htmldir         = $(docdir)/lirc.org/html
nodist_website_html_DATA  = $(generated_html) \
                          $(generated_plugindocs) \
                          NEWS.txt html-source/lirc.css


if HAVE_MAN2HTML
nodist_website_html_DATA  += $(manpage_html)
endif

if !IS_CROSS_COMPILE
if HAVE_PYMOD_YAML
nodist_website_html_DATA  += table.html
endif
endif

vardocsdir              = $(localstatedir)/lib/lirc/plugins
vardocs_DATA            = index.html html-source/lirc.css

varimagedir             = $(localstatedir)/lib/lirc/images
varimage_DATA           = $(dist_image_DATA)

website_imagedir        = $(docdir)/lirc.org/images

imagedir                = $(docdir)/images

htmldir                 = $(docdir)/html

dist_html_DATA          = html-source/lirc.css
nodist_html_DATA        =

if !IS_CROSS_COMPILE

if HAVE_PYMOD_YAML
nodist_html_DATA        += table.html
endif

if HAVE_PYMOD_YAML
nodist_pkgdata_DATA     = lirc.hwdb
endif

endif ## CROSS_COMPILE

dist_noinst_DATA        = $(man_sources) $(html_sources) $(plugindocs)


all: $(nodist_man_MANS) $(nodist_html_DATA)


install-data-hook:
if HAVE_DOXYGEN
	tar -C $(DESTDIR)$(websitedir) \
	    -xf $(DESTDIR)$(docdir)/api-docs.tar.gz && \
	        rm $(DESTDIR)$(docdir)/api-docs.tar.gz
	-mkdir -p $(DESTDIR)$(website_htmldir)
	ln -sf ../api-docs/html/index.html \
	    $(DESTDIR)$(website_htmldir)/api-docs
	cd $(DESTDIR)$(websitedir)/api-docs; ln -sf ../api-docs .
else
	ln -sf html/no-api-docs.html $(DESTDIR)$(websitedir)/api-docs
endif
	cd $(DESTDIR)$(websitedir)/api-docs; ln -sf html/index.html .
	$(SED) -i '/class="footer"/,/p>/d' $(DESTDIR)$(plugindocsdir)/page.xsl
	$(PYTHON) $(srcdir)/make_rel_symlink.py \
	    $(DESTDIR)$(vardocsdir) $(DESTDIR)$(plugindocsdir)/var
	$(PYTHON) $(srcdir)/make_rel_symlink.py \
	    $(DESTDIR)$(vardocsdir)/index.html \
	    $(DESTDIR)$(website_htmldir)/plugins-index.html
	cp $(srcdir)/plugindocs.mk $(DESTDIR)$(plugindocsdir)/Makefile

fix-urls: .phony
	sh $(srcdir)/fix-urls.sh $(DESTDIR)$(websitedir)

clean-local:
	rm -f lirc api-docs.tar.gz driver-toc.xsl
	rm -rf man-html man api-docs html examples/.libs

uninstall-hook:
	rm -rf $(DESTDIR)$(websitedir) $(DESTDIR)$(htmldir) \
            $(DESTDIR)$(plugindocsdir)


$(abs_builddir)/driver-toc.xsl: $(plugindocs)
	$(srcdir)/make-driver-toc.sh $(plugindocs)> $@

$(srcdir)/driver-toc.xsl: $(plugindocs)
	$(srcdir)/make-driver-toc.sh $(plugindocs)> $@

$(srcdir)/empty_toc.tmpl: $(generated_html)
	cp html/empty_toc.html $@

plugins.index.html: $(srcdir)/empty_toc.tmpl
	cp -a $? $@

docpage.xsl: $(abs_builddir)/driver-toc.xsl

$(srcdir)/manpage.xsl: $(abs_builddir)/driver-toc.xsl

table.html: docpage.xsl
	test -e lirc || \
	    ln -s $(top_srcdir)/tools/lirc-setup lirc 2>/dev/null || :
	PYTHONPATH=$(top_builddir)/python-pkg/lirc \
	$(PYTHON) $(srcdir)/data2table $(top_srcdir)/configs ../configs \
	        | xsltproc --html docpage.xsl - > table.html

lirc.hwdb:
	test -e lirc || \
	    ln -s $(top_srcdir)/tools/lirc-setup lirc  2>/dev/null || :
	PYTHONPATH=$(top_builddir)/python-pkg/lirc \
	$(PYTHON) $(srcdir)/data2hwdb $(top_srcdir)/configs ../configs \
	    > lirc.hwdb

NEWS.txt: $(top_srcdir)/NEWS
	cp -a $(top_srcdir)/NEWS $@

$(generated_html): $(html_sources) docpage.xsl
	@mkdir html 2>/dev/null || :
	xsltproc --html docpage.xsl \
	    $$(echo $(srcdir)/$@ | $(SED) 's|html/|html-source/|') > $@
	$(SED) -i -e "s/@version@/$(VERSION)/" $@

$(generated_plugindocs): $(plugindocs) docpage.xsl
	@mkdir html 2>/dev/null || :
	xsltproc --html docpage.xsl \
	    $$(echo $(srcdir)/$@ | $(SED) 's|html/|plugindocs/|') > $@
	$(SED) -i "s/@version@/$(VERSION)/" $@


$(manpage_html): $(nodist_man_MANS) $(srcdir)/manpage.xsl
	@mkdir man-html 2>/dev/null || :
	src=$$(echo $(srcdir)/$@ | \
                   $(SED) -e 's/man-html/man/' -e 's/\.html//'); \
	    man2html -M index.html -r $${src}.[1-8] | \
		$(SED) \
	            -e '1,/^$$/d' \
		    -e '/This document was created/i \
                        <p>'  \
		    -e '/^Time:/a \
                        </p>'  \
		    -e '/HREF/s|".*man[1-9]/\(.*\)[0-9]\.html|"\1html|' | \
			 xsltproc --html $(srcdir)/manpage.xsl - | \
			    $(SED) -e '/href="\.\.\/index.html"/s|\.\./||' > $@

$(nodist_man_MANS): $(man_sources)
	@mkdir man 2>/dev/null || :
	src=$$(echo  $(srcdir)/$@ | $(SED) 's|/man/|/man-source/|'); \
	    $(SED) "s/@version@/$(VERSION)/" <$$src >$@
	@$(SED) -i 's|@prefixdir@|$(prefix)|' $@
	@$(SED) -i 's|@varrundir@|$(localstatedir)/run|' $@
	@$(SED) -i 's|@etcdir@|$(sysconfdir)|' $@
	@$(SED) -i 's|@libpath@|$(libdir)|' $@
	@$(SED) -i 's|@libpath@|$(libdir)|' $@
	@$(SED) -i 's|@website@|$(website)|' $@

api-docs.tar.gz: $(API_SRC)
	cd ../lib;  $(MAKE) dox
	PYTHON=$(PYTHON) doxygen $(srcdir)/Doxyfile >doxygen-warnings.txt 2>&1
	find api-docs -name \*.tmp -delete
	tar czf $@ api-docs

.phony:

man_sources             += $(srcdir)/man-source/ircat.1 \
                           $(srcdir)/man-source/irdb-get.1 \
                           $(srcdir)/man-source/irexec.1 \
                           $(srcdir)/man-source/irpty.1 \
                           $(srcdir)/man-source/irrecord.1 \
                           $(srcdir)/man-source/irsimreceive.1 \
                           $(srcdir)/man-source/irsimsend.1 \
                           $(srcdir)/man-source/irsend.1 \
                           $(srcdir)/man-source/irtestcase.1 \
                           $(srcdir)/man-source/irtext2udp.1 \
                           $(srcdir)/man-source/irw.1 \
                           $(srcdir)/man-source/lirc-config-tool.1 \
                           $(srcdir)/man-source/lirc-lsplugins.1 \
                           $(srcdir)/man-source/lirc-lsremotes.1 \
                           $(srcdir)/man-source/lirc-setup.1 \
                           $(srcdir)/man-source/lircd-setup.8 \
                           $(srcdir)/man-source/lircd.8 \
                           $(srcdir)/man-source/lircd.conf.5 \
                           $(srcdir)/man-source/lircmd.8 \
                           $(srcdir)/man-source/lircrcd.8 \
                           $(srcdir)/man-source/lircrc.5 \
                           $(srcdir)/man-source/mode2.1 \
                           $(srcdir)/man-source/pronto2lirc.1

if LINUX_KERNEL
man_sources             += $(srcdir)/man-source/irpipe.1
endif

if HAVE_DEVINPUT
man_sources             += $(srcdir)/man-source/lirc-make-devinput.1
endif

if ENABLE_UINPUT
man_sources             += $(srcdir)/man-source/lircd-uinput.8
endif

plugindocs              =  $(srcdir)/plugindocs/alsa-usb.html \
                           $(srcdir)/plugindocs/atilibusb.html \
                           $(srcdir)/plugindocs/atwf83.html \
                           $(srcdir)/plugindocs/audio-alsa.html \
                           $(srcdir)/plugindocs/audio.html \
                           $(srcdir)/plugindocs/default.html \
                           $(srcdir)/plugindocs/devinput.html \
                           $(srcdir)/plugindocs/file.html \
                           $(srcdir)/plugindocs/ftdi.html \
                           $(srcdir)/plugindocs/ftdix.html \
                           $(srcdir)/plugindocs/girs.html \
                           $(srcdir)/plugindocs/imon-24g.html \
                           $(srcdir)/plugindocs/imon.html \
                           $(srcdir)/plugindocs/irtoy.html \
                           $(srcdir)/plugindocs/srm7500atilibusb.html \
                           $(srcdir)/plugindocs/tira.html \
                           $(srcdir)/plugindocs/udp.html

pluginfiles             =  $(srcdir)/plugpage.xsl \
                           $(srcdir)/driver-toc.xsl \
                           $(srcdir)/empty_index.tmpl \
                           $(srcdir)/index.tmpl \
                           $(srcdir)/make-ext-driver-toc.sh \
                           $(srcdir)/page.xsl \
                           $(srcdir)/html-source/lirc.css

html_sources            =  $(srcdir)/html-source/api-general.html \
                           $(srcdir)/html-source/configuration-guide.html \
                           $(srcdir)/html-source/configure.html \
                           $(srcdir)/html-source/driver-api.html \
                           $(srcdir)/html-source/empty_toc.html \
                           $(srcdir)/html-source/help.html \
                           $(srcdir)/html-source/index.html \
                           $(srcdir)/html-source/install.html \
                           $(srcdir)/html-source/lirc_client.html \
                           $(srcdir)/html-source/no-api-docs.html \
                           $(srcdir)/html-source/programs.html \
                           $(srcdir)/html-source/programs-overview.html \
                           $(srcdir)/html-source/pronto2lirc.html \
                           $(srcdir)/html-source/technical.html

nodist_man_MANS         += man/ircat.1 \
                           man/irdb-get.1 \
                           man/irexec.1 \
                           man/irpty.1 \
                           man/irrecord.1 \
                           man/irsimreceive.1 \
                           man/irsimsend.1 \
                           man/irsend.1 \
                           man/irtext2udp.1 \
                           man/irtestcase.1 \
                           man/irw.1 \
                           man/lirc-config-tool.1 \
                           man/lirc-lsplugins.1 \
                           man/lirc-lsremotes.1 \
                           man/lirc-setup.1 \
                           man/lircd.8 \
                           man/lircd-setup.8 \
                           man/lircd.conf.5 \
                           man/lircmd.8 \
                           man/lircrcd.8 \
                           man/lircrc.5 \
                           man/mode2.1 \
                           man/pronto2lirc.1

if LINUX_KERNEL
nodist_man_MANS         += man/irpipe.1
endif

if HAVE_DEVINPUT
nodist_man_MANS         += man/lirc-make-devinput.1
endif

if ENABLE_UINPUT
nodist_man_MANS         += man/lircd-uinput.8
endif


manpage_html            += man-html/ircat.html \
                           man-html/irdb-get.html \
                           man-html/irexec.html \
                           man-html/irpty.html \
                           man-html/irrecord.html \
                           man-html/irsimreceive.html \
                           man-html/irsimsend.html \
                           man-html/irsend.html \
                           man-html/irtestcase.html \
                           man-html/irtext2udp.html \
                           man-html/irw.html \
                           man-html/lirc-config-tool.html \
                           man-html/lirc.html \
                           man-html/lirc-lsplugins.html \
                           man-html/lirc-lsremotes.html \
                           man-html/lirc-setup.html \
                           man-html/lircd-setup.html \
                           man-html/lircd.html \
                           man-html/lircd.conf.html \
                           man-html/lircmd.html \
                           man-html/lircrcd.html \
                           man-html/lircrc.html \
                           man-html/mode2.html \
                           man-html/pronto2lirc.html

if LINUX_KERNEL
manpage_html            += man-html/irpipe.html
endif

if HAVE_DEVINPUT
manpage_html            += man-html/lirc-make-devinput.html
endif

if ENABLE_UINPUT
manpage_html            += man-html/lircd-uinput.html
endif

generated_plugindocs    =  html/alsa-usb.html \
                           html/atilibusb.html \
                           html/atwf83.html \
                           html/audio-alsa.html \
                           html/audio.html \
                           html/default.html \
                           html/devinput.html \
                           html/file.html \
                           html/ftdi.html \
                           html/ftdix.html \
                           html/girs.html \
                           html/imon-24g.html \
                           html/imon.html \
                           html/irtoy.html \
                           html/srm7500atilibusb.html \
                           html/tira.html \
                           html/udp.html

generated_html          =  html/api-general.html \
                           html/configuration-guide.html \
                           html/configure.html \
                           html/driver-api.html \
                           html/empty_toc.html \
                           html/help.html \
                           html/index.html \
                           html/install.html \
                           html/lirc_client.html \
                           html/no-api-docs.html \
                           html/programs.html \
                           html/programs-overview.html \
                           html/pronto2lirc.html \
                           html/technical.html

dist_image_DATA         =  lirc.org/images/atwf83.jpg \
                           lirc.org/images/marb18.jpg \
                           lirc.org/images/diode.gif \
                           lirc.org/images/lirc.gif

website_files           =  lirc.org/audio-alsa.html \
                           lirc.org/cir.html \
                           lirc.org/cvs.html \
                           lirc.org/developers.html \
                           lirc.org/faq.html \
                           lirc.org/favicon.ico \
                           lirc.org/git.html \
                           lirc.org/improved_transmitter.html \
                           lirc.org/index.html \
                           lirc.org/ir-audio.html \
                           lirc.org/irda.html \
                           lirc.org/lirc.css \
                           lirc.org/mirrors.html \
                           lirc.org/parallel.html \
                           lirc.org/PCB.pdf \
                           lirc.org/pictures1.html \
                           lirc.org/pictures2.html \
                           lirc.org/pictures.html \
                           lirc.org/pinout_TRM1038.txt \
                           lirc.org/receivers.html \
                           lirc.org/robots.txt \
                           lirc.org/software.html \
                           lirc.org/transmitters.html \
                           lirc.org/tv_cards.html

dist_website_image_DATA =  lirc.org/favicon.ico \
                           lirc.org/images/atwf83.jpg \
                           lirc.org/images/audio_transmitter.png \
                           lirc.org/images/audio_wave.png \
                           lirc.org/images/banner_en_1.gif \
                           lirc.org/images/better_transmitter.gif \
                           lirc.org/images/d.jpg \
                           lirc.org/images/diode.gif \
                           lirc.org/images/front.jpg \
                           lirc.org/images/improved_transmitter.gif \
                           lirc.org/images/ir-audio.png \
                           lirc.org/images/irrcv_board.gif \
                           lirc.org/images/IR-mouse1.jpg \
                           lirc.org/images/IR-mouse2.jpg \
                           lirc.org/images/lirc.gif \
                           lirc.org/images/lirc1.jpg \
                           lirc.org/images/lirc2.jpg \
                           lirc.org/images/lirc3.jpg \
                           lirc.org/images/lirclogo.gif \
                           lirc.org/images/marb18.jpg \
                           lirc.org/images/schematics.gif \
                           lirc.org/images/screenshot.gif \
                           lirc.org/images/screenshot.jpg \
                           lirc.org/images/screenshot1.gif \
                           lirc.org/images/simple_transmitter.gif \
                           lirc.org/images/top3.jpg \
                           lirc.org/images/tsop173x.png