head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2008.06.12.19.02.27;	author remko;	state Exp;
branches;
next	1.2;

1.2
date	2007.05.15.21.53.43;	author keramida;	state Exp;
branches;
next	1.1;

1.1
date	2007.05.15.21.30.41;	author keramida;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Bring the multimedia chapter towards .sgml

PR:		124447
Submitted by:	edwin
@
text
@# $FreeBSD: www/en/multimedia/Makefile,v 1.2 2007/05/15 21:53:43 keramida Exp $

.if exists(../Makefile.conf)
.include "../Makefile.conf"
.endif
.if exists(../Makefile.inc)
.include "../Makefile.inc"
.endif
.if exists(Makefile.inc)
.include "Makefile.inc"
.endif

#all: build
all: build
	cd output && make all DIRPRFX=multimedia/output/

install:
	cd output && make install DIRPRFX=multimedia/output/

TEMPLATES=	multimedia.sgml.intro \
		multimedia.sgml.post \
		multimedia.sgml.pre \
		multimedia.html.intro \
		multimedia.html.post \
		multimedia.html.pre \
		multimedia-input.xml

clean:
	-${RM} output/*

build:
	(test -d output || ${MKDIR} output ) && \
	cd output && \
	${LN} -fs ../Makefile.output Makefile && \
	( for f in ${TEMPLATES}; do ${LN} -fs ../$$f $$f; done ) && \
	${PERL} -Tw ../multimedia.pl && \
	${RM} -f *.html

.include "${WEB_PREFIX}/share/mk/web.site.mk"
@


1.2
log
@Unbreak the build.  In a clean www/ tree ${FLIST} doens't exist during
the first run, so ``DATA != cat ${FLIST}'' can't really work.

Submitted by:	edwin
Pointy hat:	keramida
@
text
@d1 1
a1 1
# $FreeBSD: www/en/multimedia/Makefile,v 1.1 2007/05/15 21:30:41 keramida Exp $
d13 14
a26 17
INDEXLINK= multimedia.html

FXML = multimedia-input.xml
FHTML = \
	multimedia.html.intro \
	multimedia.html.pre \
	multimedia.html.post
FLIST = multimedia.created
FSCRIPT = multimedia.pl

.if exists(${FLIST})
DATA!=	cat ${FLIST}
.else
DATA=	${INDEXLINK}
.endif

all: ${FLIST}
d29 1
a29 3
	if test -f ${FLIST} ; then \
		xargs ${RM} < ${FLIST} && ${RM} ${FLIST} ; \
	fi
d31 7
a37 2
${FLIST}: ${FSCRIPT} ${FXML} ${FHTML}
	perl -Tw ${FSCRIPT}
@


1.1
log
@Add a www/en/multimedia/ collection of audio, video, podcast,
photograph gallery and other multimedia resources related to
FreeBSD.  The list of resources is maintained as an XML file,
which is converted to the HTML pages at website build-time.

We may want to convert the original Perl script which creates
the pages to XSLT later on, but for now it works quite well.

Submitted by:	  edwin
@
text
@d1 1
a1 1
# $FreeBSD$
d23 1
d25 3
@

