1# $Id: Makefile 353 2006-12-25 20:01:42Z sfsetse $
2#
3# makefile to setup the the docbook support directory
4#
5
6CWD=`pwd`
7DIST=$(CWD)/../dist
8XML=docbook-xml-4.4.zip
9XSLT=docbook-xsl-1.71.1.tar.bz2
10
11all: extract-xml extract-xslt
12
13extract-xml:
14	if test ! -d xml/4.4; then \
15	  mkdir -p xml/4.4; \
16	  unzip -qq $(DIST)/$(XML) -d xml/4.4; \
17	fi
18
19extract-xslt:
20	if test ! -d docbook-xsl/1.71.1; then \
21	  mkdir -p docbook-xsl; \
22	  bzip2 -dc $(DIST)/$(XSLT) |tar xf -; \
23	  mv docbook-xsl-1.71.1 docbook-xsl/1.71.1; \
24	  ln -s 1.71.1 docbook-xsl/current; \
25	fi
26
27clean:
28	rm -fr xml docbook-xsl*
29