mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2024-12-22 08:43:33 +01:00
35 lines
710 B
Makefile
35 lines
710 B
Makefile
.PHONY=static all clean svg js css
|
|
|
|
ALL_CSS := $(patsubst res/%.less,public/%.css,$(wildcard res/*.less))
|
|
ALL_JS := $(patsubst res/%.js,public/%.js,$(wildcard res/*.js))
|
|
ALL_SVG := $(patsubst res/%.svg,public/%.svg,$(wildcard res/*.svg))
|
|
ALL_TEMPLATES := $(wildcard res/html/*.html)
|
|
|
|
all: public/index.html
|
|
|
|
static: css js svg
|
|
|
|
css: $(ALL_CSS)
|
|
|
|
js: $(ALL_JS)
|
|
|
|
svg: $(ALL_SVG)
|
|
|
|
public:
|
|
mkdir public
|
|
|
|
public/index.html: static public public/audios $(ALL_TEMPLATES)
|
|
python3 src/latex_scanner.py --latex latex/cancionero.tex --audios audios
|
|
|
|
public/audios: audios public
|
|
rm -f public/audios
|
|
ln -s ../audios public/audios
|
|
|
|
public/%.css: res/%.less
|
|
lessc $< $@
|
|
|
|
public/%: res/%
|
|
cp $< $@
|
|
|
|
clean:
|
|
rm -rf public
|