aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/drivers/Makefile
blob: 2519f22c62e194fddbead7780f8e8f46a6f1d4ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
generated by cgit v1.2.3 (git 2.25.1) at 2024-11-06 04:36:45 +0000
 


>wildcard *.xml))

%.html: %.xml %.xml-check output
	$(XSLTPROC) $< > $(OUTPUT)/$(DIR)/$@

%.html-forced: %.xml output
	$(XSLTPROC) $< > $(OUTPUT)/$(DIR)/$(patsubst %.xml,%.html,$<)

check: $(patsubst %.xml, %.xml-check, $(wildcard *.xml))

%.xml-check: %.xml
	@echo "*** Validation of $<"
	$(XMLVALID) $< 

output:
	test -d $(OUTPUT) || `mkdir $(OUTPUT); cp ../data/doc.css $(OUTPUT); cp  -R ../data/images $(OUTPUT)`
	test -d $(OUTPUT)/$(DIR) || mkdir $(OUTPUT)/$(DIR)

clean:
	rm -f $(OUTPUT)/$(DIR)/*.html

clean-bak:
	rm -f *~ *.bak

help:
	@echo -e ""
	@echo -e "Usage :"
	@echo -e "-------"
	@echo -e "make  or  make html :  builds all possible html pages from xml files"
	@echo -e "make %.html :          builds the %.html page from %.xml"
	@echo -e ""
	@echo -e "make html-forced  :    builds all possible html pages from xml files (no validity check)"
	@echo -e "make %.html-forced :   builds the %.html page from %.xml (no validity check)"
	@echo -e ""
	@echo -e "make check :           checks the validity of all possible xml files"
	@echo -e "make %.xml-check :     checks the validity of %.xml"
	@echo -e ""
	@echo -e "make clean :           deletes all generated html pages"
	@echo -e "make clean-bak :       deletes *~ and *.bak files"
	@echo -e ""