blob: bd14807243d24883dbd1907d9872618f90a1fa72 (
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
|
PY?=python3
SERVERMODULE=http.server
ifeq ($(PY), tauthon)
SERVERMODULE = SimpleHTTPServer
else ifeq ($(PY), python2)
SERVERMODULE = SimpleHTTPServer
else ifeq ($(PY), python3)
SERVERMODULE = http.server
endif
help:
@echo 'Makefile for generate styles, fonts, icons, js to cl-theme '
@echo ' '
@echo 'Usage: '
@echo ' make all compile all frontend '
@echo ' make clean delete all fonts, icons, styles, js '
@echo ' make bulma compile bulma styles '
@echo ' make icons compile icons '
@echo ' make styles compile custom styles '
@echo ' make playlist compile playlist javascript '
@echo ' make aplaylist compile playlist styles '
@echo ' make fonts generate fonts '
@echo ' make js compile javascript files '
@echo ' make serve [PY=python] [PORT=8000] serve site at http://localhost:8000 '
@echo ' '
all: generate
generate: clean bulma fonts icons js styles playlist aplaylist
clean:
@rm -rf dist/
bulma:
@bash scripts/bulma.sh
icons:
@bash scripts/icons.sh
styles:
@bash scripts/styles.sh
playlist:
@bash scripts/playlist.sh
aplaylist:
@bash scripts/aplaylist.sh
fonts:
@bash scripts/fonts.sh
js:
@bash scripts/js.sh
serve: generate
ifdef PORT
$(PY) -m $(SERVERMODULE) $(PORT)
else
$(PY) -m $(SERVERMODULE)
endif
|