blob: eefac0df6a5347505e5246678f6d624ccaf56524 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
install_global=false
-include config.mk
.PHONY: all
all:
@echo "This is a python project, no compilation required\nSCSS/SASS Initial Setup: make sass-setup\nSCSS/SASS Build (for static files): make sass-build"
.PHONY: install
ifeq ($(install_global), true)
install: install-global
else
install: install-local
endif
.PHONY: install-global
install-global:
pip3 install .
.PHONY: install-local
install-local:
pip3 install . --user
# run testcases
.PHONY: check
check:
@export TALER_CONFIG_FILE=talerblog/tests.conf; \
python3 setup.py test
.PHONY: clean
clean:
@echo nothing to do
.PHONY: dist
dist:
git archive --format=tar.gz HEAD -o taler-merchant-blog.tar.gz
.PHONY: pretty
pretty:
yapf -r -i talerblog/
# SASS/SCSS
sass-setup:
@echo "This is the initial sass-installation/setup script."
@echo "This setup must run as root, on a machine that has NPM installed!"
@echo "If your password is requested (for escalation), please enter it."
sudo npm install -g sass
scss-setup: sass-setup
sass-build:
@echo "Warning: If Sass/Scss is not installed, please run \`make sass-setup\` first!"
@echo "This script will only convert files inside /static"
sass talermerchantdemos/static:talermerchantdemos/static
scss-build: sass-build
sass-autobuild:
@echo "Warning: If Sass/Scss is not installed, please run \`make sass-setup\` first!"
@echo "This script will automatically build sass/scss files in the static directory!"
sass --watch talermerchantdemos/static:talermerchantdemos/static
scss-autobuild: sass-autobuild
|