31 lines
912 B
Makefile
31 lines
912 B
Makefile
ALLHTML=$(shell ls *.xml 2> /dev/null | sed 's/.xml$$/.html/' )
|
|
STYLESHEET=page.xslt
|
|
IMAGES=ltag-icon-en.png favicon.ico
|
|
ME=$(shell hostname)
|
|
ifeq ("${ME}","ada")
|
|
WEBSERVER=/var/www/www.langtag.net
|
|
WSGIS=/var/www/wsgis-langtag
|
|
else
|
|
WEBSERVER=bortzmeyer@www.langtag.net:/var/www/www.langtag.net
|
|
WSGIS=bortzmeyer@www.langtag.net:/var/www/wsgis-langtag
|
|
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
|
|
cp -a -r ../GaBuZoMeu/SQL/* .
|
|
cp -a ../GaBuZoMeu/*.txt test-suites/
|
|
touch ${GOOGLEVERIF}
|
|
@echo "Don't forget: sudo cp search.py ${WSGIS} and restart the WSGIs"
|
|
rsync -q -a ${ALLHTML} ${GOOGLEVERIF} ${IMAGES} ltru.css registries test-suites ${WEBSERVER}
|
|
|
|
clean:
|
|
rm -f *.html
|
|
|
|
|