]> git.ipfire.org Git - ipfire.org.git/blob - Makefile.am
a0e3b52df64b516562c3d8e8b9e1d8c612ddb8d8
[ipfire.org.git] / Makefile.am
1 #!/usr/bin/make
2
3 AM_MAKEFLAGS = --no-print-directory
4 AUTOMAKE_OPTIONS = color-tests
5
6 # remove target it the command fails
7 .DELETE_ON_ERROR:
8
9 # keep itermediate files
10 .SECONDARY:
11
12 pythondir = $(pyexecdir)
13
14 configsdir = $(sysconfdir)/ipfire.org
15 crondir = $(sysconfdir)/cron.d
16
17 CLEANFILES =
18 DISTCLEANFILES =
19 EXTRA_DIST =
20 INSTALL_DIRS =
21 noinst_DATA =
22
23 DISTCHECK_CONFIGURE_FLAGS = \
24 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
25
26 # ------------------------------------------------------------------------------
27
28 bin_SCRIPTS = \
29 src/scripts/ipfire.org \
30 src/scripts/ipfire.org-webapp
31
32 EXTRA_DIST += \
33 src/scripts/ipfire.org.in \
34 src/scripts/ipfire.org-webapp.in
35
36 CLEANFILES += \
37 src/scripts/ipfire.org \
38 src/scripts/ipfire.org-webapp
39
40 configs_DATA = \
41 ipfire.org.conf.sample
42
43 EXTRA_DIST += \
44 ipfire.org.conf.sample.in
45
46 CLEANFILES += \
47 ipfire.org.conf.sample
48
49 backend_PYTHON = \
50 src/backend/__init__.py \
51 src/backend/accounts.py \
52 src/backend/base.py \
53 src/backend/blog.py \
54 src/backend/countries.py \
55 src/backend/database.py \
56 src/backend/decorators.py \
57 src/backend/fireinfo.py \
58 src/backend/geoip.py \
59 src/backend/iuse.py \
60 src/backend/mirrors.py \
61 src/backend/misc.py \
62 src/backend/netboot.py \
63 src/backend/nopaste.py \
64 src/backend/releases.py \
65 src/backend/settings.py \
66 src/backend/talk.py \
67 src/backend/tracker.py \
68 src/backend/util.py \
69 src/backend/zeiterfassung.py
70
71 backenddir = $(pythondir)/ipfire
72
73 # ------------------------------------------------------------------------------
74
75 web_PYTHON = \
76 src/web/__init__.py \
77 src/web/auth.py \
78 src/web/blog.py \
79 src/web/download.py \
80 src/web/handlers.py \
81 src/web/handlers_base.py \
82 src/web/handlers_boot.py \
83 src/web/handlers_fireinfo.py \
84 src/web/handlers_iuse.py \
85 src/web/handlers_mirrors.py \
86 src/web/handlers_nopaste.py \
87 src/web/location.py \
88 src/web/people.py \
89 src/web/ui_modules.py
90
91 webdir = $(backenddir)/web
92
93 # ------------------------------------------------------------------------------
94
95 # TODO install the base for now and add all other templates later
96
97 templates_DATA = \
98 src/templates/base.html \
99 src/templates/donate.html \
100 src/templates/error.html \
101 src/templates/index.html
102
103 templatesdir = $(datadir)/templates
104
105 templates_auth_DATA = \
106 src/templates/auth/login.html
107
108 templates_authdir = $(templatesdir)/auth
109
110 templates_blog_DATA = \
111 src/templates/blog/author.html \
112 src/templates/blog/base.html \
113 src/templates/blog/compose.html \
114 src/templates/blog/drafts.html \
115 src/templates/blog/feed.xml \
116 src/templates/blog/index.html \
117 src/templates/blog/post.html \
118 src/templates/blog/search-results.html \
119 src/templates/blog/tag.html \
120 src/templates/blog/year.html
121
122 templates_blogdir = $(templatesdir)/blog
123
124 templates_blog_modules_DATA = \
125 src/templates/blog/modules/history-navigation.html \
126 src/templates/blog/modules/list.html \
127 src/templates/blog/modules/post.html \
128 src/templates/blog/modules/posts.html
129
130 templates_blog_modulesdir = $(templates_blogdir)/modules
131
132 templates_download_DATA = \
133 src/templates/download/base.html \
134 src/templates/download/release.html
135
136 templates_downloaddir = $(templatesdir)/download
137
138 templates_location_DATA = \
139 src/templates/location/lookup.html
140
141 templates_locationdir = $(templatesdir)/location
142
143 templates_modules_DATA = \
144 src/templates/modules/map.html \
145 src/templates/modules/menu.html
146
147 templates_modulesdir = $(templatesdir)/modules
148
149 templates_people_DATA = \
150 src/templates/people/base.html \
151 src/templates/people/index.html \
152 src/templates/people/registrations.html \
153 src/templates/people/search.html \
154 src/templates/people/user.html \
155 src/templates/people/users.html
156
157 templates_peopledir = $(templatesdir)/people
158
159 templates_people_modules_DATA = \
160 src/templates/people/modules/accounts-list.html \
161 src/templates/people/modules/cdr.html \
162 src/templates/people/modules/channels.html \
163 src/templates/people/modules/registrations.html
164
165 templates_people_modulesdir = $(templates_peopledir)/modules
166
167 templates_static_DATA = \
168 src/templates/static/features.html \
169 src/templates/static/get-involved.html \
170 src/templates/static/get-started.html \
171 src/templates/static/get-support.html \
172 src/templates/static/hardware.html \
173 src/templates/static/legal.html
174
175 templates_staticdir = $(templatesdir)/static
176
177 # ------------------------------------------------------------------------------
178
179 SCSS_FILES = \
180 src/scss/style.scss \
181 src/scss/_fonts.scss \
182 src/scss/_icons.scss \
183 src/scss/_variables.scss
184
185 EXTRA_DIST += \
186 src/templates/messages/main.scss
187
188 CLEANFILES += \
189 src/templates/messages/main.css
190
191 static_DATA = \
192 src/static/favicon.ico \
193 src/static/robots.txt \
194 src/scss/main.css
195
196 CLEANFILES += \
197 src/scss/main.css
198
199 EXTRA_DIST += \
200 $(SCSS_FILES)
201
202 staticdir = $(datadir)/static
203
204 static_fonts_DATA = \
205 src/fonts/ofl/mukta/Mukta-Bold.ttf \
206 src/fonts/ofl/mukta/Mukta-ExtraBold.ttf \
207 src/fonts/ofl/mukta/Mukta-ExtraLight.ttf \
208 src/fonts/ofl/mukta/Mukta-Light.ttf \
209 src/fonts/ofl/mukta/Mukta-Medium.ttf \
210 src/fonts/ofl/mukta/Mukta-Regular.ttf \
211 src/fonts/ofl/mukta/Mukta-SemiBold.ttf \
212 \
213 src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.eot \
214 src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.svg \
215 src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.ttf \
216 src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.woff \
217 src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.woff2 \
218 src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.eot \
219 src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.svg \
220 src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.ttf \
221 src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.woff \
222 src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.woff2 \
223 src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.eot \
224 src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.svg \
225 src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.ttf \
226 src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.woff \
227 src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.woff2
228
229 static_fontsdir = $(staticdir)/fonts
230
231 static_images_DATA = \
232 src/static/img/amex.png \
233 src/static/img/amex@2x.png \
234 src/static/img/amex@3x.png \
235 src/static/img/appliance-pro.png \
236 src/static/img/default-avatar.jpg \
237 src/static/img/ipfire-tux.png \
238 src/static/img/lightningwirelabs-logo.svg \
239 src/static/img/mastercard.png \
240 src/static/img/mastercard@2x.png \
241 src/static/img/mastercard@3x.png \
242 src/static/img/paypal.png \
243 src/static/img/paypal@2x.png \
244 src/static/img/paypal@3x.png \
245 src/static/img/visa.png \
246 src/static/img/visa@2x.png \
247 src/static/img/visa@3x.png
248
249 static_imagesdir = $(staticdir)/img
250
251 static_images_screenshots_DATA = \
252 src/static/img/screenshots/firewall-connections.png \
253 src/static/img/screenshots/firewall-host-groups.png \
254 src/static/img/screenshots/firewall-new-rule.png \
255 src/static/img/screenshots/firewall-rules.png \
256 src/static/img/screenshots/firewall-service-groups.png \
257 src/static/img/screenshots/pakfire-addon-services-1.png \
258 src/static/img/screenshots/pakfire-overview-1.png
259
260 static_images_screenshotsdir = $(static_imagesdir)/screenshots
261
262 static_images_tux_DATA = \
263 src/static/img/tux/ipfire_tux_16x16.png \
264 src/static/img/tux/ipfire_tux_20x20.png \
265 src/static/img/tux/ipfire_tux_32x32.png \
266 src/static/img/tux/ipfire_tux_48x48.png \
267 src/static/img/tux/ipfire_tux_64x64.png \
268 src/static/img/tux/ipfire_tux_128x128.png \
269 src/static/img/tux/ipfire_tux_256x256.png \
270 src/static/img/tux/ipfire_tux_420x420.png \
271 src/static/img/tux/ipfire_tux_512x512.png
272
273 static_images_tuxdir = $(static_imagesdir)/tux
274
275 static_js_DATA = \
276 src/bootstrap/dist/js/bootstrap.min.js \
277 src/bootstrap/dist/js/bootstrap.min.js.map \
278 \
279 src/static/js/jquery-3.3.1.min.js \
280 src/static/js/popper.min.js \
281 src/static/js/site.js
282
283 static_jsdir = $(staticdir)/js
284
285 # ------------------------------------------------------------------------------
286
287 dist_cron_DATA = \
288 src/crontab/ipfire.org
289
290 # ------------------------------------------------------------------------------
291
292 if HAVE_SYSTEMD
293 systemdsystemunit_DATA = \
294 src/systemd/ipfire.org-webapp-1.service \
295 src/systemd/ipfire.org-webapp-2.service \
296 src/systemd/ipfire.org-webapp-3.service \
297 src/systemd/ipfire.org-webapp-4.service
298
299 CLEANFILES += \
300 $(systemdsystemunit_DATA)
301
302 INSTALL_DIRS += \
303 $(systemdsystemunitdir)
304 endif
305
306 EXTRA_DIST += \
307 src/systemd/ipfire.org-webapp-1.service.in \
308 src/systemd/ipfire.org-webapp-3.service.in \
309 src/systemd/ipfire.org-webapp-3.service.in \
310 src/systemd/ipfire.org-webapp-4.service.in
311
312 # ------------------------------------------------------------------------------
313
314 substitutions = \
315 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
316 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
317 '|PYTHON=$(PYTHON)|' \
318 '|configsdir=$(configsdir)|' \
319 '|bindir=$(bindir)|' \
320 '|datadir=$(datadir)|'
321
322 SED_PROCESS = \
323 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
324 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
325 < $< > $@
326
327 %: %.in Makefile
328 $(SED_PROCESS)
329
330 %.css: %.scss Makefile
331 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
332 $(SASSC) --style compressed $< > $@
333
334 src/scss/main.css: $(SCSS_FILES) Makefile
335 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
336 $(SASSC) --style compressed $< > $@