ports/databases/sqlite2/files/Makefile.docs
Mikhail Teterin 55b0526ba9 A number of things:
. changed maintainership to ports@;
	. build with TCL support (``package require sqlite'');
	. run the vendor's tests after build (sorry, Maxim) -- zero errors;
	. generate from the TCL sources and install the HTML documentation;
	  (unless NOPORTDOCS is set);
	. build and install two usefull tools, which come with the software:
		gdbmdump and gdbmstat;
	. build and install the shared version of -lsqlite -- usefull and
	  needed for dynamic loading into TCL interpreter;
	. lastly: the new functionality (TCL, tools, docs) called for the
	  PORTREVISION bump.

Approved by: after the previous maintainer suggested the first point above,
	the rest was easy :-)
2001-06-11 23:32:07 +00:00

25 lines
526 B
Text

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