Web-LangTag/Makefile

31 lines
912 B
Makefile
Raw Normal View History

2023-06-09 10:02:30 +02:00
ALLHTML=$(shell ls *.xml 2> /dev/null | sed 's/.xml$$/.html/' )
STYLESHEET=page.xslt
IMAGES=ltag-icon-en.png favicon.ico
ME=$(shell hostname)
2023-06-11 16:24:50 +02:00
ifeq ("${ME}","ada")
2023-06-09 10:02:30 +02:00
WEBSERVER=/var/www/www.langtag.net
2023-10-01 11:54:21 +02:00
WSGIS=/var/www/wsgis-langtag
2023-06-09 10:02:30 +02:00
else
WEBSERVER=bortzmeyer@www.langtag.net:/var/www/www.langtag.net
2023-10-01 11:54:21 +02:00
WSGIS=bortzmeyer@www.langtag.net:/var/www/wsgis-langtag
2023-06-09 10:02:30 +02:00
endif
GOOGLEVERIF=google75f3cadf7e9fc996.html
all: ${ALLHTML}
%.html: %.xml ${STYLESHEET} language-subtag-registry-version
xsltproc --stringparam lsr-version `cat language-subtag-registry-version` \
--output $@ ${STYLESHEET} $< && xmllint --noout --valid $@
install: all
2023-06-11 16:21:49 +02:00
cp -a -r ../GaBuZoMeu/SQL/* .
2023-06-11 16:28:08 +02:00
cp -a ../GaBuZoMeu/*.txt test-suites/
2023-06-09 10:02:30 +02:00
touch ${GOOGLEVERIF}
2023-10-01 11:54:21 +02:00
@echo "Don't forget: sudo cp search.py ${WSGIS} and restart the WSGIs"
2023-06-11 16:17:27 +02:00
rsync -q -a ${ALLHTML} ${GOOGLEVERIF} ${IMAGES} ltru.css registries test-suites ${WEBSERVER}
2023-06-09 10:02:30 +02:00
clean:
rm -f *.html