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 # ------------------------------------------------------------------------------
95 MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
96 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
98 man: $(MANPAGES) $(MANPAGES_HTML)
116 --stringparam man.output.quietly 1 \
117 --stringparam funcsynopsis.style ansi \
118 --stringparam man.th.extra1.suppress 1 \
119 --stringparam man.authors.section.enabled 1 \
120 --stringparam man.copyright.section.enabled 1
122 XSLTPROC_COMMAND_MAN = \
123 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
124 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
126 XSLTPROC_COMMAND_HTML = \
127 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
130 $(XSLTPROC_COMMAND_MAN)
133 $(XSLTPROC_COMMAND_MAN)
135 man/%.html: man/%.xml man/custom-html.xsl
136 $(XSLTPROC_COMMAND_HTML)
140 # ------------------------------------------------------------------------------
143 systemdsystemunit_DATA = \
144 src/systemd/ddns.service \
145 src/systemd/ddns.timer
148 $(systemdsystemunit_DATA)
151 $(systemdsystemunitdir)
155 src/systemd/ddns.service.in \
156 src/systemd/ddns.timer
158 # ------------------------------------------------------------------------------
161 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
162 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
163 '|configsdir=$(configsdir)|' \
167 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
168 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
171 ddns: ddns.in Makefile
174 src/systemd/%: src/systemd/%.in Makefile