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
42 @INTLTOOL_POLICY_RULE@
46 $(MAKE) -C po update-po
48 # ------------------------------------------------------------------------------
50 AM_V_XSLT = $(AM_V_XSLT_$(V))
51 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
52 AM_V_XSLT_0 = @echo " XSLT " $@;
54 # ------------------------------------------------------------------------------
59 # ------------------------------------------------------------------------------
74 src/ddns/__init__.py \
75 src/ddns/__version__.py \
78 src/ddns/providers.py \
81 ddnsdir = $(pythondir)/ddns
83 # ------------------------------------------------------------------------------
90 MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
91 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
93 man: $(MANPAGES) $(MANPAGES_HTML)
111 --stringparam man.output.quietly 1 \
112 --stringparam funcsynopsis.style ansi \
113 --stringparam man.th.extra1.suppress 1 \
114 --stringparam man.authors.section.enabled 1 \
115 --stringparam man.copyright.section.enabled 1
117 XSLTPROC_COMMAND_MAN = \
118 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
119 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
121 XSLTPROC_COMMAND_HTML = \
122 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
125 $(XSLTPROC_COMMAND_MAN)
128 $(XSLTPROC_COMMAND_MAN)
130 man/%.html: man/%.xml man/custom-html.xsl
131 $(XSLTPROC_COMMAND_HTML)
135 # ------------------------------------------------------------------------------
138 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
139 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
140 '|configsdir=$(configsdir)|'
143 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
144 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
147 ddns: ddns.in Makefile