doc/en/gallery/Makefile
Neil Blakey-Milner fbca680c07 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.
2000-09-30 00:21:39 +00:00

36 lines
1.1 KiB
Makefile

# $FreeBSD: www/en/gallery/Makefile,v 1.9 2000/04/20 16:40:58 phantom Exp $
.if exists(../Makefile.conf)
.include "../Makefile.conf"
.endif
DOCS = gallery.sgml
DOCS+= cgallery.sgml
DOCS+= npgallery.sgml
DOCS+= pgallery.sgml
INDEXLINK= gallery.html
CLEANFILES+= cgallery.inc npgallery.inc pgallery.inc gallery.inc
cgallery.html: cgallery.sgml cgallery.inc
cgallery.inc: gallery.db gengallery.pl
${PERL} ${.CURDIR}/gengallery.pl commercial ${.CURDIR}/gallery.db > cgallery.inc
npgallery.html: npgallery.sgml npgallery.inc
npgallery.inc: gallery.db gengallery.pl
${PERL} ${.CURDIR}/gengallery.pl nonprofit ${.CURDIR}/gallery.db > npgallery.inc
pgallery.html: pgallery.sgml pgallery.inc
pgallery.inc: gallery.db gengallery.pl
${PERL} ${.CURDIR}/gengallery.pl personal ${.CURDIR}/gallery.db > pgallery.inc
gallery.html: gallery.sgml gallery.inc
gallery.inc: gallery.db gallery.sgml
${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
.include "../web.mk"