]> git.ipfire.org Git - people/ms/ddns.git/blame - Makefile.am
strato: Add mx and backupmx flags to update request.
[people/ms/ddns.git] / Makefile.am
CommitLineData
3fdcb9d1
MT
1###############################################################################
2# #
dc11f1ea
MT
3# Pakfire - The IPFire package management system #
4# Copyright (C) 2013 Pakfire development team #
3fdcb9d1
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
f22ab085 20
dc11f1ea
MT
21ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22AM_MAKEFLAGS = --no-print-directory
23AUTOMAKE_OPTIONS = color-tests
f22ab085 24
dc11f1ea
MT
25# remove target it the command fails
26.DELETE_ON_ERROR:
f22ab085 27
dc11f1ea
MT
28# keep itermediate files
29.SECONDARY:
f22ab085 30
dc11f1ea 31SUBDIRS = . po
f22ab085 32
dc11f1ea 33pythondir = $(pyexecdir)
f22ab085 34
dc11f1ea 35configsdir = $(sysconfdir)/ddns
f22ab085 36
dc11f1ea
MT
37CLEANFILES =
38DISTCLEANFILES =
39EXTRA_DIST =
2443dd94 40noinst_DATA =
f22ab085 41
dc11f1ea 42@INTLTOOL_POLICY_RULE@
f22ab085 43
dc11f1ea
MT
44.PHONY: update-po
45update-po:
46 $(MAKE) -C po update-po
f22ab085 47
dc11f1ea 48# ------------------------------------------------------------------------------
f22ab085 49
2443dd94
SS
50AM_V_XSLT = $(AM_V_XSLT_$(V))
51AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
52AM_V_XSLT_0 = @echo " XSLT " $@;
53
54# ------------------------------------------------------------------------------
55
dc11f1ea
MT
56dist_doc_DATA = \
57 COPYING
58
59# ------------------------------------------------------------------------------
60
0b5e00a2
MT
61bin_SCRIPTS = \
62 ddns
63
64EXTRA_DIST += \
65 ddns.in
66
67CLEANFILES += \
dc11f1ea
MT
68 ddns
69
70dist_configs_DATA = \
677765c0 71 ddns.conf.sample
dc11f1ea
MT
72
73ddns_PYTHON = \
74 src/ddns/__init__.py \
75 src/ddns/__version__.py \
37e24fbf 76 src/ddns/database.py \
dc11f1ea
MT
77 src/ddns/errors.py \
78 src/ddns/i18n.py \
79 src/ddns/providers.py \
80 src/ddns/system.py
81
82ddnsdir = $(pythondir)/ddns
0b5e00a2
MT
83
84# ------------------------------------------------------------------------------
85
2443dd94
SS
86if ENABLE_MANPAGES
87MANPAGES = \
88 man/ddns.1 \
89 man/ddns.conf.5
90
91MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
92MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
93
94man: $(MANPAGES) $(MANPAGES_HTML)
95
96man_MANS = \
97 $(MANPAGES)
98
99noinst_DATA += \
100 $(MANPAGES_HTML)
101
102CLEANFILES += \
103 $(man_MANS) \
104 $(MANPAGES_HTML)
105
106EXTRA_DIST += \
107 $(MANPAGES_XML) \
108 man/custom-html.xsl
109
110XSLTPROC_FLAGS = \
111 --nonet \
112 --stringparam man.output.quietly 1 \
113 --stringparam funcsynopsis.style ansi \
114 --stringparam man.th.extra1.suppress 1 \
115 --stringparam man.authors.section.enabled 1 \
116 --stringparam man.copyright.section.enabled 1
117
118XSLTPROC_COMMAND_MAN = \
119 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
120 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
121
122XSLTPROC_COMMAND_HTML = \
123 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
124
125man/%.1: man/%.xml
126 $(XSLTPROC_COMMAND_MAN)
127
128man/%.5: man/%.xml
129 $(XSLTPROC_COMMAND_MAN)
130
131man/%.html: man/%.xml man/custom-html.xsl
132 $(XSLTPROC_COMMAND_HTML)
133
134endif
135
136# ------------------------------------------------------------------------------
137
0b5e00a2
MT
138substitutions = \
139 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
140 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
141 '|configsdir=$(configsdir)|'
142
143SED_PROCESS = \
144 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
145 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
146 < $< > $@
147
148ddns: ddns.in Makefile
149 $(SED_PROCESS)