First (and very minor) changes on the way to make the www build
obj-clean. This basically entails putting ${.CURDIR} in front of the occasional source file, script, or directory. Also adds '.include <bsd.obj.mk>' to web.mk so 'make obj' works. Change gencommercial script to take a '-s' flag pointing to the source directory, and the portindex script to take an optional additional parameter indicating the source directory. Add -D ${.CURDIR} to sgmlformat to follow includes properly.
This commit is contained in:
parent
892101a84e
commit
fbca680c07
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=8047
12 changed files with 68 additions and 60 deletions
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/gallery/Makefile,v 1.8 2000/04/07 13:09:21 phantom Exp $
|
||||
# $FreeBSD: www/en/gallery/Makefile,v 1.9 2000/04/20 16:40:58 phantom Exp $
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
|
@ -15,19 +15,19 @@ CLEANFILES+= cgallery.inc npgallery.inc pgallery.inc gallery.inc
|
|||
|
||||
cgallery.html: cgallery.sgml cgallery.inc
|
||||
cgallery.inc: gallery.db gengallery.pl
|
||||
${PERL} ./gengallery.pl commercial gallery.db > cgallery.inc
|
||||
${PERL} ${.CURDIR}/gengallery.pl commercial ${.CURDIR}/gallery.db > cgallery.inc
|
||||
|
||||
npgallery.html: npgallery.sgml npgallery.inc
|
||||
npgallery.inc: gallery.db gengallery.pl
|
||||
${PERL} ./gengallery.pl nonprofit gallery.db > npgallery.inc
|
||||
${PERL} ${.CURDIR}/gengallery.pl nonprofit ${.CURDIR}/gallery.db > npgallery.inc
|
||||
|
||||
pgallery.html: pgallery.sgml pgallery.inc
|
||||
pgallery.inc: gallery.db gengallery.pl
|
||||
${PERL} ./gengallery.pl personal gallery.db > pgallery.inc
|
||||
${PERL} ${.CURDIR}/gengallery.pl personal ${.CURDIR}/gallery.db > pgallery.inc
|
||||
|
||||
gallery.html: gallery.sgml gallery.inc
|
||||
gallery.inc: gallery.db gallery.sgml
|
||||
${PERL} ./prune.pl gallery.db /dev/null | \
|
||||
${PERL} ${.CURDIR}/prune.pl ${.CURDIR}/gallery.db /dev/null | \
|
||||
${PERL} -ne 'chomp; m/([-\w]+):\s+(\d+)/ and \
|
||||
print qq/<!ENTITY num./.lc($$1).qq/ CDATA "$$2">\n/' \
|
||||
> gallery.inc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue