mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2025-06-05 22:43:13 +02:00
Nuevo generador de cancioneros en línea.
This commit is contained in:
parent
3d9bb9a26b
commit
c622a27e34
13 changed files with 5870 additions and 0 deletions
31
Makefile_generador
Normal file
31
Makefile_generador
Normal file
|
@ -0,0 +1,31 @@
|
|||
.PHONY=static all clean
|
||||
|
||||
ALL_STATIC := $(patsubst res_gen/static/%,generador_public/%,$(wildcard res_gen/static/*))
|
||||
ALL_TEMPLATES := $(wildcard res_gen/templates/*.html)
|
||||
PY_SRC := $(wildcard src/**.py)
|
||||
|
||||
all: generador_public generador_public/index.html static generador_public/res/canciones
|
||||
|
||||
static: $(ALL_STATIC)
|
||||
|
||||
generador_public:
|
||||
mkdir generador_public
|
||||
|
||||
generador_public/res/canciones:
|
||||
rsync -a latex/canciones generador_public/res/.
|
||||
|
||||
generador_public/index.html: $(ALL_TEMPLATES) $(PY_SRC)
|
||||
python3 src/create_generator.py \
|
||||
--latex latex/cancionero.tex \
|
||||
--other-latex latex/canciones/ \
|
||||
--author NONE --title NONE
|
||||
|
||||
generador_public/%: res_gen/static/%
|
||||
cp -ra $< $@
|
||||
|
||||
clean:
|
||||
rm -rf generador_public songs.dat
|
||||
|
||||
.PHONY: upload
|
||||
upload: all
|
||||
rsync -a --delete generador_public/* uberspace:html/cancionero-generador/.
|
Loading…
Add table
Add a link
Reference in a new issue