aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/lcd4linux/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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Path
DIR = $(notdir $(PWD))
OUTPUT = ../HTML

ifeq "$(DIR)" "lcd4linux"
	DIR = 
endif

ifeq "$(DIR)" ""
	XSLTPROC = xsltproc
else
	XSLTPROC = xsltproc --stringparam class $(DIR) --stringparam root "../"
endif

XMLVALID = xmllint --noout --valid

NAMES=$(shell find . -name "*.xml" -exec basename {} .xml \;)

html: $(patsubst %.xml,%.html,$(wildcard *.xml))
html-forced: $(patsubst %.xml,%.html-forced,$(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 ""
low=1'>[lcd4linux @ 2002-08-19 09:43:43 by reinelt]reinelt1-261/+57 BeckmannEgle using new generic bar functions git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@163 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-19[lcd4linux @ 2002-08-19 09:30:18 by reinelt]reinelt1-256/+106 MatrixOrbital uses generic bar funnctions git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@162 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-19[lcd4linux @ 2002-08-19 09:11:34 by reinelt]reinelt2-257/+51 changed HD44780 to use generic bar functions git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@161 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-19[lcd4linux @ 2002-08-19 07:52:19 by reinelt]reinelt3-8/+17 corrected type declaration of (*defchar)() git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@160 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-19[lcd4linux @ 2002-08-19 07:36:29 by reinelt]reinelt7-359/+481 finished bar.c, USBLCD is the first driver that uses the generic bar functions git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@159 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-19[lcd4linux @ 2002-08-19 04:41:20 by reinelt]reinelt20-32/+166 introduced bar.c, moved bar stuff from display.h to bar.h git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@158 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-18[lcd4linux @ 2002-08-18 08:11:11 by reinelt]reinelt1-26/+28 USBLCD buffered I/O git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@157 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-17[lcd4linux @ 2002-08-17 14:14:21 by reinelt]reinelt3-67/+101 USBLCD fixes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@156 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-17[lcd4linux @ 2002-08-17 13:10:22 by reinelt]reinelt9-182/+765 USBLCD driver added git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@155 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-08-17[lcd4linux @ 2002-08-17 12:54:08 by reinelt]reinelt1-7/+23 minor T6963 changes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@154 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-04-30[lcd4linux @ 2002-04-30 07:20:15 by reinelt]reinelt2-173/+129 implemented the new ndelay(nanoseconds) in all parallel port drivers git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2002-04-29[lcd4linux @ 2002-04-29 11:00:25 by reinelt]reinelt14-2339/+5100 added Toshiba T6963 driver added ndelay() with nanosecond resolution git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@152 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-09-14[lcd4linux @ 2001-09-14 05:57:06 by reinelt]reinelt1-1/+5 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@151 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-09-13[lcd4linux @ 2001-09-13 07:40:57 by reinelt]reinelt1-0/+6 TODO update git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@150 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-09-12[lcd4linux @ 2001-09-12 06:17:22 by reinelt]reinelt2-1/+8 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@149 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-09-12[lcd4linux @ 2001-09-12 05:58:16 by reinelt]reinelt3-9/+27 fixed bug in mail2.c git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@148 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-09-12[lcd4linux @ 2001-09-12 05:37:22 by reinelt]reinelt4-23/+99 fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's improved socket debugging git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@147 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-09-11[lcd4linux @ 2001-09-11 06:43:43 by reinelt]reinelt1-1/+10 TODO items git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@146 3ae390bd-cb1e-0410-b409-cd5a39f66f1f