File: Makefile.am

package info (click to toggle)
lcdproc 0.5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,088 kB
  • sloc: ansic: 59,645; sh: 1,740; perl: 681; makefile: 417
file content (104 lines) | stat: -rw-r--r-- 2,702 bytes parent folder | download | duplicates (6)
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
## Process this file with automake to produce Makefile.in

man_MANS = lcdproc.1 lcdexec.1 lcdvc.1 LCDd.8 lcdproc-config.5
SUBDIRS = lcdproc-user lcdproc-dev
doxygen_input = doxy-mainpage.md

EXTRA_DIST = lcdproc.1.in \
	lcdexec.1 \
	lcdvc.1.in \
	LCDd.8.in \
	lcdproc-config.5.in \
	$(doxygen_input)


## generate man pages
LCDd.8: LCDd.8.in
	sed -e 's:@SYSCONFDIR@:@sysconfdir@:g' $? > $@

lcdproc.1: lcdproc.1.in
	sed -e 's:@SYSCONFDIR@:@sysconfdir@:g' $? > $@

lcdvc.1: lcdvc.1.in
	sed -e 's:@SYSCONFDIR@:@sysconfdir@:g' $? > $@

lcdproc-config.5: lcdproc-config.5.in
	sed -e 's:@SYSCONFDIR@:@sysconfdir@:g' $? > $@

## clean generated makefiles
CLEANFILES = LCDd.8 lcdproc.1 lcdvc.1 lcdproc-config.5


## convenience targets

.PHONY: install-server-man install-client-man

install-server-man: install-man8 install-man5

install-client-man: install-man1 install-man5


.PHONY: install-html-guides install-html-developerguide install-html-userguide

install-html-guides: install-html-developerguide install-html-userguide

install-html-developerguide:
	$(MAKE) -C lcdproc-dev $@

install-html-userguide:
	$(MAKE) -C lcdproc-user $@


######################################################################
# DOXYGEN stuff
# (stolen from cppunit project (http://cppunit.sourceforge.net/)
######################################################################

# DOX is defined if installer requests dox generation.
# For now, we only install HTML documentation.
if DOX
### htmldir = $(pkgdatadir)/html
### html_DATA = html/index.html
### install-data-hook:
### 	cp -pR html/* $(DESTDIR)$(htmldir)
### # Automake's "distcheck" is sensitive to having files left over
### # after "make uninstall", so we have to clean up the install hook.
### uninstall-local:
### 	rm -rf $(DESTDIR)$(htmldir)
install-data-hook:
uninstall-local:
dox: html/index.html

else
# We repeat the three targets in both the "if" and "else" clauses
# of the conditional, because the generated makefile will contain
# references to the targets (target "install" depends on target
# "install-datahook", for example), and some make programs get upset
# if no target exists.
install-data-hook:
uninstall-local:
dox:

endif

# uncomment this if you want documentation to be build by
# default. Otherwise do it on demand.

#all-local: dox
html/index.html: Doxyfile $(doxygen_input)
	"@DOXYGEN@"
# Make tarfile to distribute the HTML documentation.
doc-dist: dox
	tar -czf $(PACKAGE)-docs-$(VERSION).tar.gz -C html .

pdf: @PACKAGE@.pdf
@PACKAGE@.pdf:
	$(MAKE) -C ./latex pdf
	ln -s ./latex/refman.ps	 @PACKAGE@.ps
	ln -s ./latex/refman.pdf @PACKAGE@.pdf

clean-local:
	rm -f -r latex
	rm -f -r html man @PACKAGE@.ps @PACKAGE@.pdf

## EOF