1 ###############################################################################
3 # Pakfire - The IPFire package management system #
4 # Copyright (C) 2013 Pakfire development team #
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. #
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. #
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/>. #
19 ###############################################################################
21 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22 AM_MAKEFLAGS = --no-print-directory
23 AUTOMAKE_OPTIONS = color-tests
25 # remove target it the command fails
28 # keep itermediate files
33 pythondir = $(pyexecdir)
35 configsdir = $(sysconfdir)/ddns
43 @INTLTOOL_POLICY_RULE@
47 $(MAKE) -C po update-po
49 DISTCHECK_CONFIGURE_FLAGS = \
50 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
52 # ------------------------------------------------------------------------------
54 AM_V_XSLT = $(AM_V_XSLT_$(V))
55 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
56 AM_V_XSLT_0 = @echo " XSLT " $@;
58 # ------------------------------------------------------------------------------
63 # ------------------------------------------------------------------------------
78 src/ddns/__init__.py \
79 src/ddns/__version__.py \
80 src/ddns/database.py \
83 src/ddns/providers.py \
86 ddnsdir = $(pythondir)/ddns
88 # ------------------------------------------------------------------------------
91 man: $(MANPAGES) $(MANPAGES_HTML)
98 MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
99 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
117 --stringparam man.output.quietly 1 \
118 --stringparam funcsynopsis.style ansi \
119 --stringparam man.th.extra1.suppress 1 \
120 --stringparam man.authors.section.enabled 1 \
121 --stringparam man.copyright.section.enabled 1
123 XSLTPROC_COMMAND_MAN = \
124 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
125 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
127 XSLTPROC_COMMAND_HTML = \
128 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
131 $(XSLTPROC_COMMAND_MAN)
134 $(XSLTPROC_COMMAND_MAN)
136 man/%.html: man/%.xml man/custom-html.xsl
137 $(XSLTPROC_COMMAND_HTML)
141 # ------------------------------------------------------------------------------
144 systemdsystemunit_DATA = \
145 src/systemd/ddns.service \
146 src/systemd/ddns.timer
149 $(systemdsystemunit_DATA)
152 $(systemdsystemunitdir)
156 src/systemd/ddns.service.in \
157 src/systemd/ddns.timer
159 # ------------------------------------------------------------------------------
162 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
163 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
164 '|configsdir=$(configsdir)|' \
168 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
169 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
172 ddns: ddns.in Makefile
175 src/systemd/%: src/systemd/%.in Makefile