Section: web
Priority: optional
Maintainer: Roland Rosenfeld <roland@debian.org>
-Build-Depends: debhelper (>> 3.0.0), autoconf, libpcre3-dev
+Build-Depends: debhelper (>> 3.0.0), autoconf, libpcre3-dev, docbook-utils
Standards-Version: 3.5.6
Package: privoxy
DEBDIR=`pwd`/debian/privoxy
+DB2HTML=jw -f docbook -b html -d `pwd`/ldpOK.dsl\#html
+
+
CFLAGS="-O2"
WITHDEBUG=""
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
autoconf
env CFLAGS=$(CFLAGS) \
./configure --prefix=/usr --sysconfdir=/etc \
- --mandir=/usr/share/man --with-docbook=no \
- $(WITHDEBUG)
+ --mandir=/usr/share/man $(WITHDEBUG) \
+ --with-docbook=/usr/share/sgml/docbook/stylesheet/dsssl/modular
touch configure-stamp
build: build-stamp
-
build-stamp: configure-stamp
dh_testdir
$(MAKE)
+# And now we create the documentation (manually):
+ $(MAKE) doc/source/ldpOK.dsl
+ (cd doc/source; \
+ $(DB2HTML) -o faq faq.sgml; \
+ $(DB2HTML) -o user-manual user-manual.sgml; \
+ $(DB2HTML) -o developer-manual developer-manual.sgml; \
+ docbook2txt faq.sgml; \
+ docbook2txt user-manual.sgml; \
+ docbook2txt developer-manual.sgml)
+
touch build-stamp
clean:
dh_testroot
rm -f build-stamp configure-stamp
- -$(MAKE) clean
+ -$(MAKE) clobber
rm -f privoxy
- rm -f configure config.h config.h.in config.log config.cache \
- config.status GNUmakefile
+ rm -f configure config.h GNUmakefile
+ rm -f doc/source/ldpOK.dsl
+ rm -rf doc/source/faq doc/source/user-manual \
+ doc/source/developer-manual
+ rm -f doc/source/*.txt
dh_clean
rm -f $(DEBDIR)/etc/privoxy/templates/*~
rm -rf $(DEBDIR)/etc/privoxy/templates/CVS
- cp -r doc/webserver/user-manual $(DEBDIR)/usr/share/doc/privoxy/
- cp -r doc/webserver/faq $(DEBDIR)/usr/share/doc/privoxy/
- cp -r doc/webserver/developer-manual $(DEBDIR)/usr/share/doc/privoxy/
-
# Build architecture-independent files here.
binary-indep: build install