This repository was archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 1.52 KB
/
Makefile
File metadata and controls
46 lines (36 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Foris - web administration interface for OpenWrt based on NETCONF
# Copyright (C) 2019 CZ.NIC, z.s.p.o. <http://www.nic.cz>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
COMPILED_CSS = $(wildcard foris/static/css/*)
COMPILED_L10N = $(wildcard foris/locale/*/LC_MESSAGES/*.mo)
SASS_COMPILER = compass compile -s compressed -e production
all: sass
# target: sass - Compile SASS files to CSS files using SASS/Compass compiler.
sass:
@cd foris/static/; \
echo '-- Running compass $<';\
$(SASS_COMPILER)
@echo
# target: clean - Remove all compiled CSS and localization files.
clean:
rm -rf $(COMPILED_CSS) $(COMPILED_L10N) $(TPL_FILES)
# target: help - Show this help.
help:
@egrep "^# target:" Makefile
# target: messages - extract translations from sources
messages:
./setup.py extract_messages --no-location -o foris/locale/foris.pot -F babel.cfg
./setup.py update_catalog -D foris -i foris/locale/foris.pot -d foris/locale/
.PHONY: all sass messages