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
37 # Directories for static files
38 webrootdir = $(datadir)/westferry/webroot
39 webroot_cssdir = $(webrootdir)/css
40 webroot_fontsdir = $(webrootdir)/fonts
41 webroot_scriptsdir = $(webrootdir)/scripts
42 webroot_imagesdir = $(webrootdir)/images
50 @INTLTOOL_POLICY_RULE@
54 $(MAKE) -C po update-po
56 DISTCHECK_CONFIGURE_FLAGS = \
57 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
59 # ------------------------------------------------------------------------------
61 AM_V_XSLT = $(AM_V_XSLT_$(V))
62 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
63 AM_V_XSLT_0 = @echo " XSLT " $@;
65 # ------------------------------------------------------------------------------
70 # ------------------------------------------------------------------------------
76 src/scripts/westferry.in
85 src/westferry/__init__.py \
86 src/westferry/constants.py \
87 src/westferry/application.py \
88 src/westferry/services.py
90 westferrydir = $(pythondir)/westferry
93 src/westferry/constants.py.in
96 src/westferry/constants.py
98 westferry_backend_PYTHON = \
99 src/westferry/backend/__version__.py
101 westferry_backenddir = $(pythondir)/westferry/backend
103 westferry_handlers_PYTHON = \
104 src/westferry/handlers/__init__.py \
105 src/westferry/handlers/base.py \
106 src/westferry/handlers/index.py
108 westferry_handlersdir = $(pythondir)/westferry/handlers
110 westferry_ui_PYTHON = \
111 src/westferry/ui/__init__.py \
112 src/westferry/ui/base.py \
113 src/westferry/ui/menu.py \
114 src/westferry/ui/utils.py
116 westferry_uidir = $(pythondir)/westferry/ui
118 # - templates ------------------------------------------------------------------
120 templatesdir = $(datadir)/westferry/templates
122 dist_templates_DATA = \
123 src/templates/base.html
125 templates_modulesdir = $(templatesdir)/modules
127 templates_modules_menudir = $(templates_modulesdir)/menu
129 dist_templates_modules_menu_DATA = \
130 src/templates/modules/menu/sidebar.html
132 ui_modulesdir = $(datadir)/westferry/templates/modules
136 dist_webroot_css_DATA = \
137 src/styles/westferry.css
139 # - third party ----------------------------------------------------------------
141 # We currently ship a copy of Bootstrap which eventually has to go away
143 dist_webroot_css_DATA += \
144 src/third-party/bootstrap/css/bootstrap.min.css
147 src/third-party/bootstrap/css/bootstrap.css \
148 src/third-party/bootstrap/css/bootstrap-theme.css \
149 src/third-party/bootstrap/css/bootstrap-theme.css.map \
150 src/third-party/bootstrap/css/bootstrap.min.css \
151 src/third-party/bootstrap/css/bootstrap-theme.min.css \
152 src/third-party/bootstrap/css/bootstrap.css.map
154 dist_webroot_fonts_DATA = \
155 src/third-party/bootstrap/fonts/glyphicons-halflings-regular.ttf \
156 src/third-party/bootstrap/fonts/glyphicons-halflings-regular.svg \
157 src/third-party/bootstrap/fonts/glyphicons-halflings-regular.woff \
158 src/third-party/bootstrap/fonts/glyphicons-halflings-regular.eot \
159 src/third-party/bootstrap/fonts/glyphicons-halflings-regular.woff2
161 dist_webroot_scripts_DATA = \
162 src/third-party/bootstrap/js/bootstrap.min.js
165 src/third-party/bootstrap/js/npm.js \
166 src/third-party/bootstrap/js/bootstrap.js
168 # Also shipping jQuery
170 dist_webroot_scripts_DATA += \
171 src/third-party/jquery.min.js
173 # ------------------------------------------------------------------------------
178 MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
179 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
181 man: $(MANPAGES) $(MANPAGES_HTML)
199 --stringparam man.output.quietly 1 \
200 --stringparam funcsynopsis.style ansi \
201 --stringparam man.th.extra1.suppress 1 \
202 --stringparam man.authors.section.enabled 1 \
203 --stringparam man.copyright.section.enabled 1
205 XSLTPROC_COMMAND_MAN = \
206 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
207 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
209 XSLTPROC_COMMAND_HTML = \
210 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
213 $(XSLTPROC_COMMAND_MAN)
216 $(XSLTPROC_COMMAND_MAN)
218 man/%.html: man/%.xml man/custom-html.xsl
219 $(XSLTPROC_COMMAND_HTML)
223 # ------------------------------------------------------------------------------
226 systemdsystemunit_DATA = \
227 src/systemd/westferry.service
230 $(systemdsystemunit_DATA)
233 $(systemdsystemunitdir)
237 src/systemd/westferry.service.in
239 # ------------------------------------------------------------------------------
242 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
243 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
244 '|configsdir=$(configsdir)|' \
245 '|bindir=$(bindir)|' \
246 '|datadir=$(datadir)|' \
247 '|templatesdir=$(templatesdir)|' \
248 '|webrootdir=$(webrootdir)|'
251 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
252 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
255 %.py: %.py.in Makefile
258 src/scripts/westferry: src/scripts/westferry.in Makefile
261 src/systemd/%: src/systemd/%.in Makefile