Makefile
branchpoesie
changeset 14 ab0866b1578d
parent 11 f0219282c9fd
child 15 5d8d02c08a17
equal deleted inserted replaced
13:930b9bb86eb1 14:ab0866b1578d
    22 	lettreseule.xml				\
    22 	lettreseule.xml				\
    23 	louve.xml				\
    23 	louve.xml				\
    24 	nature.xml				\
    24 	nature.xml				\
    25 	oiseau.xml				\
    25 	oiseau.xml				\
    26 	ondes.xml				\
    26 	ondes.xml				\
    27 	orchidee.xml				\
    27 #	orchidee.xml				\
    28 	paysage.xml				\
    28 	paysage.xml				\
    29 	plonger.xml				\
    29 	plonger.xml				\
    30 	pomme.xml				\
    30 	pomme.xml				\
    31 	prince.xml				\
    31 	prince.xml				\
    32 	renaissance.xml				\
    32 	renaissance.xml				\
    41 DTD_DIR=$(TOP)/dtd
    41 DTD_DIR=$(TOP)/dtd
    42 STYLES=$(addprefix $(STYLES_DIR)/,common.xsl)
    42 STYLES=$(addprefix $(STYLES_DIR)/,common.xsl)
    43 HTML_STYLES=$(STYLES) $(addprefix $(STYLES_DIR)/,html.xsl poetry_html.xsl)
    43 HTML_STYLES=$(STYLES) $(addprefix $(STYLES_DIR)/,html.xsl poetry_html.xsl)
    44 PRINT_STYLES=$(STYLES) $(addprefix $(STYLES_DIR)/,print.xsl poetry_print.xsl masters_print.xsl)
    44 PRINT_STYLES=$(STYLES) $(addprefix $(STYLES_DIR)/,print.xsl poetry_print.xsl masters_print.xsl)
    45 DTD=$(addprefix $(DTD_DIR)/,poetry.dtd)
    45 DTD=$(addprefix $(DTD_DIR)/,poetry.dtd)
       
    46 SGML_CATALOG_FILES=$(CATALOG)
       
    47 export SGML_CATALOG_FILES
       
    48 xml_validate=xmllint --catalogs --xinclude $(1) |	\
       
    49 	sed -e 's/\(xmlns:xi\|xml:base\)="[^"]*"//g' |	\
       
    50 	xmllint --catalogs --valid --noout - 2>&1 |	\
       
    51 	sed 's/^-:/$(1):/'
       
    52 html_validate=true
    46 
    53 
    47 #REMOTE_DIR=o:public_html/poesie
    54 #REMOTE_DIR=o:public_html/poesie
    48 # FOP=xmlto pdf
    55 # FOP=xmlto pdf
    49 FOP=fop
    56 FOP=fop
    50 CATALOG=$(TOP)/catalog
    57 CATALOG=$(TOP)/catalog
    61 	rsync -avz -P $(OUTPUT) $(REMOTE_DIR)
    68 	rsync -avz -P $(OUTPUT) $(REMOTE_DIR)
    62 
    69 
    63 install: $(OUTPUT)
    70 install: $(OUTPUT)
    64 	[ -d $(INSTALL_DIR) ] || mkdir -p $(INSTALL_DIR)
    71 	[ -d $(INSTALL_DIR) ] || mkdir -p $(INSTALL_DIR)
    65 	cp -a $(OUTPUT)* $(INSTALL_DIR)
    72 	cp -a $(OUTPUT)* $(INSTALL_DIR)
       
    73 
       
    74 validate:
       
    75 	$(call xml_validate,$(SRCS))
    66 
    76 
    67 clean:
    77 clean:
    68 	rm -f *~ *.fo
    78 	rm -f *~ *.fo
    69 
    79 
    70 purge: clean
    80 purge: clean