]>
Commit | Line | Data |
---|---|---|
a292b0f8 MT |
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 \ | |
a292b0f8 | 52 | src/backend/base.py \ |
0a6875dc | 53 | src/backend/blog.py \ |
a292b0f8 MT |
54 | src/backend/countries.py \ |
55 | src/backend/database.py \ | |
de9dc716 | 56 | src/backend/decorators.py \ |
a292b0f8 MT |
57 | src/backend/fireinfo.py \ |
58 | src/backend/geoip.py \ | |
59 | src/backend/iuse.py \ | |
60 | src/backend/memcached.py \ | |
61 | src/backend/mirrors.py \ | |
62 | src/backend/misc.py \ | |
63 | src/backend/netboot.py \ | |
a292b0f8 | 64 | src/backend/nopaste.py \ |
a292b0f8 MT |
65 | src/backend/releases.py \ |
66 | src/backend/settings.py \ | |
67 | src/backend/talk.py \ | |
68 | src/backend/tracker.py \ | |
69 | src/backend/util.py \ | |
70 | src/backend/zeiterfassung.py | |
71 | ||
72 | backenddir = $(pythondir)/ipfire | |
73 | ||
74 | # ------------------------------------------------------------------------------ | |
75 | ||
76 | web_PYTHON = \ | |
77 | src/web/__init__.py \ | |
08df6527 | 78 | src/web/auth.py \ |
12e5de7e | 79 | src/web/blog.py \ |
e77cd04c | 80 | src/web/download.py \ |
a292b0f8 MT |
81 | src/web/handlers.py \ |
82 | src/web/handlers_accounts.py \ | |
83 | src/web/handlers_admin.py \ | |
84 | src/web/handlers_base.py \ | |
85 | src/web/handlers_boot.py \ | |
a292b0f8 MT |
86 | src/web/handlers_fireinfo.py \ |
87 | src/web/handlers_iuse.py \ | |
88 | src/web/handlers_mirrors.py \ | |
a292b0f8 | 89 | src/web/handlers_nopaste.py \ |
a292b0f8 | 90 | src/web/handlers_talk.py \ |
f5b01fc2 | 91 | src/web/location.py \ |
917434b8 | 92 | src/web/talk.py \ |
a292b0f8 MT |
93 | src/web/ui_modules.py |
94 | ||
95 | webdir = $(backenddir)/web | |
96 | ||
97 | # ------------------------------------------------------------------------------ | |
98 | ||
99 | # TODO install the base for now and add all other templates later | |
100 | ||
101 | templates_DATA = \ | |
08c12016 | 102 | src/templates/base.html \ |
95b30f84 | 103 | src/templates/donate.html \ |
622b1cce | 104 | src/templates/error.html \ |
deb605e3 | 105 | src/templates/index.html |
a292b0f8 MT |
106 | |
107 | templatesdir = $(datadir)/templates | |
108 | ||
08df6527 MT |
109 | templates_auth_DATA = \ |
110 | src/templates/auth/login.html | |
111 | ||
112 | templates_authdir = $(templatesdir)/auth | |
113 | ||
12e5de7e | 114 | templates_blog_DATA = \ |
cfc0823a | 115 | src/templates/blog/author.html \ |
12e5de7e | 116 | src/templates/blog/base.html \ |
541c952b | 117 | src/templates/blog/compose.html \ |
0b342a05 | 118 | src/templates/blog/drafts.html \ |
f0714277 | 119 | src/templates/blog/feed.xml \ |
8a897d25 | 120 | src/templates/blog/index.html \ |
e6b18dce | 121 | src/templates/blog/post.html \ |
4bde7f18 | 122 | src/templates/blog/search-results.html \ |
7e64f6a3 MT |
123 | src/templates/blog/tag.html \ |
124 | src/templates/blog/year.html | |
12e5de7e MT |
125 | |
126 | templates_blogdir = $(templatesdir)/blog | |
127 | ||
f91dfcc7 | 128 | templates_blog_modules_DATA = \ |
7e64f6a3 MT |
129 | src/templates/blog/modules/history-navigation.html \ |
130 | src/templates/blog/modules/list.html \ | |
8a897d25 MT |
131 | src/templates/blog/modules/post.html \ |
132 | src/templates/blog/modules/posts.html | |
f91dfcc7 MT |
133 | |
134 | templates_blog_modulesdir = $(templates_blogdir)/modules | |
135 | ||
e77cd04c MT |
136 | templates_download_DATA = \ |
137 | src/templates/download/base.html \ | |
e77cd04c MT |
138 | src/templates/download/release.html |
139 | ||
140 | templates_downloaddir = $(templatesdir)/download | |
141 | ||
f5b01fc2 MT |
142 | templates_location_DATA = \ |
143 | src/templates/location/lookup.html | |
144 | ||
145 | templates_locationdir = $(templatesdir)/location | |
146 | ||
08c12016 | 147 | templates_modules_DATA = \ |
f5b01fc2 | 148 | src/templates/modules/map.html \ |
08c12016 MT |
149 | src/templates/modules/menu.html |
150 | ||
151 | templates_modulesdir = $(templatesdir)/modules | |
152 | ||
2b1d9700 | 153 | templates_static_DATA = \ |
2b1d9700 MT |
154 | src/templates/static/features.html \ |
155 | src/templates/static/get-involved.html \ | |
156 | src/templates/static/get-started.html \ | |
157 | src/templates/static/get-support.html \ | |
158 | src/templates/static/hardware.html \ | |
159 | src/templates/static/legal.html | |
160 | ||
161 | templates_staticdir = $(templatesdir)/static | |
162 | ||
7aee4b8d MT |
163 | templates_talk_DATA = \ |
164 | src/templates/talk/base.html \ | |
917434b8 MT |
165 | src/templates/talk/index.html \ |
166 | src/templates/talk/registrations.html | |
7aee4b8d MT |
167 | |
168 | templates_talkdir = $(templatesdir)/talk | |
169 | ||
917434b8 MT |
170 | templates_talk_modules_DATA = \ |
171 | src/templates/talk/modules/registrations.html | |
172 | ||
173 | templates_talk_modulesdir = $(templates_talkdir)/modules | |
174 | ||
a292b0f8 MT |
175 | # ------------------------------------------------------------------------------ |
176 | ||
177 | SCSS_FILES = \ | |
178 | src/scss/style.scss \ | |
616bd6a5 | 179 | src/scss/_fonts.scss \ |
a292b0f8 | 180 | src/scss/_icons.scss \ |
bc5b7100 | 181 | src/scss/_variables.scss |
a292b0f8 MT |
182 | |
183 | EXTRA_DIST += \ | |
184 | src/templates/messages/main.scss | |
185 | ||
186 | CLEANFILES += \ | |
187 | src/templates/messages/main.css | |
188 | ||
189 | static_DATA = \ | |
591fe164 | 190 | src/static/favicon.ico \ |
836caa65 | 191 | src/static/robots.txt \ |
a292b0f8 MT |
192 | src/scss/main.css |
193 | ||
194 | CLEANFILES += \ | |
195 | src/scss/main.css | |
196 | ||
197 | EXTRA_DIST += \ | |
198 | $(SCSS_FILES) | |
199 | ||
200 | staticdir = $(datadir)/static | |
201 | ||
202 | static_fonts_DATA = \ | |
74bded45 MT |
203 | src/fonts/ofl/mukta/Mukta-Bold.ttf \ |
204 | src/fonts/ofl/mukta/Mukta-ExtraBold.ttf \ | |
205 | src/fonts/ofl/mukta/Mukta-ExtraLight.ttf \ | |
206 | src/fonts/ofl/mukta/Mukta-Light.ttf \ | |
207 | src/fonts/ofl/mukta/Mukta-Medium.ttf \ | |
208 | src/fonts/ofl/mukta/Mukta-Regular.ttf \ | |
209 | src/fonts/ofl/mukta/Mukta-SemiBold.ttf | |
a292b0f8 MT |
210 | |
211 | static_fontsdir = $(staticdir)/fonts | |
212 | ||
213 | static_images_DATA = \ | |
95b30f84 MT |
214 | src/static/img/amex.png \ |
215 | src/static/img/amex@2x.png \ | |
216 | src/static/img/amex@3x.png \ | |
dabc8e11 | 217 | src/static/img/appliance-pro.png \ |
95b30f84 | 218 | src/static/img/ipfire-tux.png \ |
52173320 | 219 | src/static/img/lightningwirelabs-logo.svg \ |
95b30f84 MT |
220 | src/static/img/mastercard.png \ |
221 | src/static/img/mastercard@2x.png \ | |
222 | src/static/img/mastercard@3x.png \ | |
223 | src/static/img/paypal.png \ | |
224 | src/static/img/paypal@2x.png \ | |
225 | src/static/img/paypal@3x.png \ | |
226 | src/static/img/visa.png \ | |
227 | src/static/img/visa@2x.png \ | |
228 | src/static/img/visa@3x.png | |
a292b0f8 | 229 | |
dabc8e11 | 230 | static_imagesdir = $(staticdir)/img |
a292b0f8 | 231 | |
b2e8f05d MT |
232 | static_images_screenshots_DATA = \ |
233 | src/static/img/screenshots/firewall-connections.png \ | |
234 | src/static/img/screenshots/firewall-host-groups.png \ | |
235 | src/static/img/screenshots/firewall-new-rule.png \ | |
236 | src/static/img/screenshots/firewall-rules.png \ | |
237 | src/static/img/screenshots/firewall-service-groups.png \ | |
238 | src/static/img/screenshots/pakfire-addon-services-1.png \ | |
239 | src/static/img/screenshots/pakfire-overview-1.png | |
240 | ||
241 | static_images_screenshotsdir = $(static_imagesdir)/screenshots | |
242 | ||
511a03f2 MT |
243 | static_images_tux_DATA = \ |
244 | src/static/img/tux/ipfire_tux_16x16.png \ | |
245 | src/static/img/tux/ipfire_tux_20x20.png \ | |
246 | src/static/img/tux/ipfire_tux_32x32.png \ | |
247 | src/static/img/tux/ipfire_tux_48x48.png \ | |
248 | src/static/img/tux/ipfire_tux_64x64.png \ | |
249 | src/static/img/tux/ipfire_tux_128x128.png \ | |
250 | src/static/img/tux/ipfire_tux_256x256.png \ | |
251 | src/static/img/tux/ipfire_tux_420x420.png \ | |
252 | src/static/img/tux/ipfire_tux_512x512.png | |
253 | ||
254 | static_images_tuxdir = $(static_imagesdir)/tux | |
255 | ||
a292b0f8 | 256 | static_js_DATA = \ |
f9b71176 MT |
257 | src/bootstrap/dist/js/bootstrap.min.js \ |
258 | src/bootstrap/dist/js/bootstrap.min.js.map \ | |
259 | \ | |
260 | src/static/js/jquery-3.3.1.min.js \ | |
261 | src/static/js/popper.min.js \ | |
262 | src/static/js/site.js | |
a292b0f8 MT |
263 | |
264 | static_jsdir = $(staticdir)/js | |
265 | ||
266 | # ------------------------------------------------------------------------------ | |
267 | ||
268 | dist_cron_DATA = \ | |
269 | src/crontab/ipfire.org | |
270 | ||
271 | # ------------------------------------------------------------------------------ | |
272 | ||
273 | if HAVE_SYSTEMD | |
274 | systemdsystemunit_DATA = \ | |
275 | src/systemd/ipfire.org-webapp-1.service \ | |
276 | src/systemd/ipfire.org-webapp-2.service \ | |
277 | src/systemd/ipfire.org-webapp-3.service \ | |
278 | src/systemd/ipfire.org-webapp-4.service | |
279 | ||
280 | CLEANFILES += \ | |
281 | $(systemdsystemunit_DATA) | |
282 | ||
283 | INSTALL_DIRS += \ | |
284 | $(systemdsystemunitdir) | |
285 | endif | |
286 | ||
287 | EXTRA_DIST += \ | |
288 | src/systemd/ipfire.org-webapp-1.service.in \ | |
289 | src/systemd/ipfire.org-webapp-3.service.in \ | |
290 | src/systemd/ipfire.org-webapp-3.service.in \ | |
291 | src/systemd/ipfire.org-webapp-4.service.in | |
292 | ||
293 | # ------------------------------------------------------------------------------ | |
294 | ||
295 | substitutions = \ | |
296 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
297 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
ff6cfa37 | 298 | '|PYTHON=$(PYTHON)|' \ |
a292b0f8 MT |
299 | '|configsdir=$(configsdir)|' \ |
300 | '|bindir=$(bindir)|' \ | |
301 | '|datadir=$(datadir)|' | |
302 | ||
303 | SED_PROCESS = \ | |
304 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
305 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
306 | < $< > $@ | |
307 | ||
308 | %: %.in Makefile | |
309 | $(SED_PROCESS) | |
310 | ||
311 | %.css: %.scss Makefile | |
312 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
313 | $(SASSC) --style compressed $< > $@ | |
314 | ||
315 | src/scss/main.css: $(SCSS_FILES) Makefile | |
316 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
317 | $(SASSC) --style compressed $< > $@ |