This commit brings in some synchronizations, Original revisions for all Makefiles, switch from en/web.mk to share/mk/web.site.mk
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
# The FreeBSD Russian Documentation Project
|
|
# $FreeBSDru: frdp/www/ru/gallery/Makefile,v 1.3 2000/11/10 17:04:49 phantom Exp $
|
|
# Original revision: 1.11
|
|
|
|
.if exists(../Makefile.conf)
|
|
.include "../Makefile.conf"
|
|
.endif
|
|
|
|
.if exists(../Makefile.inc)
|
|
.include "../Makefile.inc"
|
|
.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
|
|
|
|
SCRIPTSRCDIR = ${.CURDIR}/../../en/gallery
|
|
GENSCRIPT = $(SCRIPTSRCDIR)/gengallery.pl
|
|
DBFILE = $(SCRIPTSRCDIR)/gallery.db
|
|
|
|
cgallery.html: cgallery.sgml cgallery.inc
|
|
cgallery.inc: $(GENSCRIPT) $(DBFILE)
|
|
${PERL} $(GENSCRIPT) commercial $(DBFILE) > cgallery.inc
|
|
|
|
npgallery.html: npgallery.sgml npgallery.inc
|
|
npgallery.inc: $(GENSCRIPT) $(DBFILE)
|
|
${PERL} $(GENSCRIPT) nonprofit $(DBFILE) > npgallery.inc
|
|
|
|
pgallery.html: pgallery.sgml pgallery.inc
|
|
pgallery.inc: $(GENSCRIPT) $(DBFILE)
|
|
${PERL} $(GENSCRIPT) personal $(DBFILE) > pgallery.inc
|
|
|
|
gallery.html: gallery.sgml gallery.inc
|
|
gallery.inc: $(DBFILE) gallery.sgml
|
|
${PERL} $(SCRIPTSRCDIR)/prune.pl $(DBFILE) /dev/null | \
|
|
${PERL} -ne 'chomp; m/([-\w]+):\s+(\d+)/ and \
|
|
print qq/<!ENTITY num./.lc($$1).qq/ CDATA "$$2">\n/' \
|
|
> gallery.inc
|
|
|
|
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|