]> git.ipfire.org Git - nitsi.git/blame - Makefile.am
Makefile: Remove any excessive whitespace
[nitsi.git] / Makefile.am
CommitLineData
2fa4467d
JS
1ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
2AM_MAKEFLAGS = --no-print-directory
3AUTOMAKE_OPTIONS = color-tests
4
5# remove target it the command fails
6.DELETE_ON_ERROR:
7
8# keep itermediate files
9.SECONDARY:
10
11pythondir = $(pyexecdir)
12
13CLEANFILES =
14DISTCLEANFILES =
15EXTRA_DIST =
16INSTALL_DIRS =
17noinst_DATA =
18
2fa4467d
JS
19AM_V_XSLT = $(AM_V_XSLT_$(V))
20AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
21AM_V_XSLT_0 = @echo " XSLT " $@;
22
23bin_SCRIPTS = \
24 nitsi
25
26CLEANFILES += \
27 nitsi
28
29nitsi_PYTHON = \
30 src/nitsi/__init__.py \
31 src/nitsi/disk.py \
23bfbec7 32 src/nitsi/logger.py \
2fa4467d
JS
33 src/nitsi/machine.py \
34 src/nitsi/network.py \
35 src/nitsi/recipe.py \
36 src/nitsi/serial_connection.py \
37 src/nitsi/test.py \
38 src/nitsi/virtual_environ.py
39
2fa4467d
JS
40nitsidir = $(pythondir)/nitsi
41
42# ------------------------------------------------------------------------------
43
44.PHONY: man
45man: $(MANPAGES) $(MANPAGES_HTML)
46
47if ENABLE_MANPAGES
48MANPAGES = \
20b41754
JS
49 man/nitsi.1 \
50 man/nitsi.settings.1 \
51 man/nitsi.recipe.1
2fa4467d
JS
52
53MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
54MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
55
56man_MANS = \
57 $(MANPAGES)
58
59noinst_DATA += \
60 $(MANPAGES_HTML)
61
62CLEANFILES += \
63 $(man_MANS) \
64 $(MANPAGES_HTML)
65
66EXTRA_DIST += \
67 $(MANPAGES_XML) \
68 man/custom-html.xsl
69
70XSLTPROC_FLAGS = \
71 --nonet \
72 --stringparam man.output.quietly 1 \
73 --stringparam funcsynopsis.style ansi \
74 --stringparam man.th.extra1.suppress 1 \
75 --stringparam man.authors.section.enabled 1 \
76 --stringparam man.copyright.section.enabled 1
77
78XSLTPROC_COMMAND_MAN = \
79 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
80 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
81
82XSLTPROC_COMMAND_HTML = \
83 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
84
85man/%.1: man/%.xml
86 $(XSLTPROC_COMMAND_MAN)
87
88man/%.5: man/%.xml
89 $(XSLTPROC_COMMAND_MAN)
90
91man/%.html: man/%.xml man/custom-html.xsl
92 $(XSLTPROC_COMMAND_HTML)
2fa4467d
JS
93endif
94
95# ------------------------------------------------------------------------------
96
97substitutions = \
98 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
99 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|'
100
101SED_PROCESS = \
102 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
103 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
104 < $< > $@
105
106nitsi: nitsi.in Makefile
107 $(SED_PROCESS)