1 ###############################################################################
3 # Westferry - The IPFire web user interface #
4 # Copyright (C) 2015 IPFire 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)/westferry
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 # ------------------------------------------------------------------------------
69 src/scripts/westferry.in
78 src/westferry/__init__.py \
79 src/westferry/application.py \
80 src/westferry/services.py
82 westferrydir = $(pythondir)/westferry
84 westferry_backend_PYTHON = \
85 src/westferry/backend/__version__.py
87 westferry_backenddir = $(pythondir)/westferry/backend
89 westferry_handlers_PYTHON = \
90 src/westferry/handlers/__init__.py \
91 src/westferry/handlers/base.py \
92 src/westferry/handlers/index.py
94 westferry_handlersdir = $(pythondir)/westferry/handlers
96 westferry_ui_PYTHON = \
97 src/westferry/ui/__init__.py \
98 src/westferry/ui/base.py
100 westferry_uidir = $(pythondir)/westferry/ui
102 # ------------------------------------------------------------------------------
107 MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
108 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
110 man: $(MANPAGES) $(MANPAGES_HTML)
128 --stringparam man.output.quietly 1 \
129 --stringparam funcsynopsis.style ansi \
130 --stringparam man.th.extra1.suppress 1 \
131 --stringparam man.authors.section.enabled 1 \
132 --stringparam man.copyright.section.enabled 1
134 XSLTPROC_COMMAND_MAN = \
135 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
136 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
138 XSLTPROC_COMMAND_HTML = \
139 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
142 $(XSLTPROC_COMMAND_MAN)
145 $(XSLTPROC_COMMAND_MAN)
147 man/%.html: man/%.xml man/custom-html.xsl
148 $(XSLTPROC_COMMAND_HTML)
152 # ------------------------------------------------------------------------------
155 systemdsystemunit_DATA = \
156 src/systemd/westferry.service
159 $(systemdsystemunit_DATA)
162 $(systemdsystemunitdir)
166 src/systemd/westferry.service.in
168 # ------------------------------------------------------------------------------
171 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
172 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
173 '|configsdir=$(configsdir)|' \
177 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
178 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
181 src/scripts/westferry: src/scripts/westferry.in Makefile
184 src/systemd/%: src/systemd/%.in Makefile