summaryrefslogtreecommitdiff
path: root/databases/sqlite2/files/Makefile.docs
blob: 77d95a57d548c4e161fe9c37e8b81ecbfbf08f37 (plain) (blame)
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
TCL_VER	?=	8.3

SRCS	!=	echo ${.CURDIR}/*.tcl
DOCS	 =	${SRCS:Nopcode.tcl:.tcl=.html}
CODE	!=	echo ${.CURDIR}/../src/*.[chy]

all:	${DOCS} opcode.html

opcode.html:: opcode.tcl vdbe.c
	tclsh${TCL_VER} ${.ALLSRC} > opcode.html

.SUFFIXES:	.tcl .html

.tcl.html:
	tclsh${TCL_VER} $*.tcl > $*.html

${DOCS}:	last_change

.PATH: ${.CURDIR}/../src

last_change: ${CODE}
	awk '/\$$Id:/ && NF > 4 { \
		if ($$2 == "\$$Id:") print $$5 "," $$6; \
		else print $$6 "," $$7 \
	}' ${.ALLSRC} | sort -t, | tail -1 > lc && mv lc last_change