2020-12-12 16:20:41 +01:00
|
|
|
.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))
|
2020-12-24 16:17:13 +01:00
|
|
|
ALL_TEMPLATES := $(wildcard res/html/*.html)
|
2020-12-12 16:20:41 +01:00
|
|
|
|
|
|
|
all: public/index.html
|
|
|
|
|
|
|
|
static: css js svg
|
|
|
|
|
|
|
|
css: $(ALL_CSS)
|
|
|
|
|
|
|
|
js: $(ALL_JS)
|
|
|
|
|
|
|
|
svg: $(ALL_SVG)
|
|
|
|
|
|
|
|
public:
|
|
|
|
mkdir public
|
|
|
|
|
2020-12-24 16:17:13 +01:00
|
|
|
public/index.html: static public public/audios $(ALL_TEMPLATES)
|
2020-12-12 17:21:04 +01:00
|
|
|
python3 src/latex_scanner.py --latex latex/cancionero.tex --audios audios
|
2020-10-14 00:54:52 +02:00
|
|
|
|
2020-12-12 16:20:41 +01:00
|
|
|
public/audios: audios public
|
|
|
|
rm -f public/audios
|
|
|
|
ln -s ../audios public/audios
|
|
|
|
|
|
|
|
public/%.css: res/%.less
|
|
|
|
lessc $< $@
|
|
|
|
|
|
|
|
public/%: res/%
|
|
|
|
cp $< $@
|
|
|
|
|
2020-10-14 00:54:52 +02:00
|
|
|
clean:
|
|
|
|
rm -rf public
|