2000-02-17 20:38:33 +01:00
|
|
|
# -*- Makefile -*- for winsup/doc
|
2013-04-23 17:49:08 +02:00
|
|
|
# Copyright (c) 1998-2000, 2001, 2002, 2004, 2005, 2006, 2008, 2009, 2010,
|
|
|
|
# 2013 Red Hat, Inc.
|
2000-02-17 20:38:33 +01:00
|
|
|
#
|
|
|
|
# This file is part of Cygwin.
|
|
|
|
#
|
|
|
|
# This software is a copyrighted work licensed under the terms of the
|
|
|
|
# Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
# details.
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2013-05-02 01:30:25 +02:00
|
|
|
DBXDIRS = -d $(srcdir) -d $(srcdir)/../utils -d $(srcdir)/../cygwin
|
2000-04-19 02:55:19 +02:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
CC:=@CC@
|
|
|
|
CC_FOR_TARGET:=@CC@
|
|
|
|
exeext:=@build_exeext@
|
|
|
|
|
2010-06-27 23:32:19 +02:00
|
|
|
XMLTO:=xmlto --skip-validation --with-dblatex
|
2010-01-26 17:16:19 +01:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
include $(srcdir)/../Makefile.common
|
|
|
|
|
2013-05-03 22:41:12 +02:00
|
|
|
FAQ_SOURCES:= $(wildcard ${srcdir}/faq*.xml)
|
2009-02-11 17:44:13 +01:00
|
|
|
|
2013-05-02 02:10:15 +02:00
|
|
|
.SUFFIXES: .html .body
|
|
|
|
|
|
|
|
.html.body:
|
|
|
|
$(srcdir)/bodysnatcher.pl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-05-23 21:02:46 +02:00
|
|
|
all: Makefile Makefile.dep \
|
2000-02-17 20:38:33 +01:00
|
|
|
cygwin-ug-net/cygwin-ug-net.html \
|
2009-07-20 17:08:08 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz \
|
2001-06-13 19:54:55 +02:00
|
|
|
cygwin-api/cygwin-api.html \
|
2013-05-02 02:10:15 +02:00
|
|
|
faq/faq.body faq/faq.html \
|
2008-07-01 19:17:31 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.pdf \
|
2009-07-20 17:08:08 +02:00
|
|
|
cygwin-api/cygwin-api.pdf
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-06-04 13:50:41 +02:00
|
|
|
Makefile: ${srcdir}/Makefile.in
|
|
|
|
/bin/sh ./config.status
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
clean:
|
2013-05-23 21:02:46 +02:00
|
|
|
rm -f Makefile.dep
|
2013-05-02 01:30:25 +02:00
|
|
|
rm -f doctool.exe doctool.o
|
|
|
|
rm -f cygwin-api.xml
|
|
|
|
rm -f *.html *.html.gz
|
|
|
|
rm -Rf cygwin-api cygwin-ug cygwin-ug-net faq
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-07-20 12:44:50 +02:00
|
|
|
install: all
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-05-02 01:30:25 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz : cygwin-ug-net.xml
|
|
|
|
-${XMLTO} html-nochunks -m $(srcdir)/cygwin.xsl $<
|
2004-12-27 20:03:56 +01:00
|
|
|
-cp cygwin-ug-net.html cygwin-ug-net/cygwin-ug-net-nochunks.html
|
2005-01-29 23:35:17 +01:00
|
|
|
-rm -f cygwin-ug-net/cygwin-ug-net-nochunks.html.gz
|
2004-12-27 20:03:56 +01:00
|
|
|
-gzip cygwin-ug-net/cygwin-ug-net-nochunks.html
|
2004-01-11 09:32:09 +01:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.html : cygwin-ug-net.xml cygwin.xsl
|
2013-05-02 01:30:25 +02:00
|
|
|
-${XMLTO} html -o cygwin-ug-net/ -m $(srcdir)/cygwin.xsl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.pdf : cygwin-ug-net.xml fo.xsl
|
2013-07-20 12:44:50 +02:00
|
|
|
-xsltproc --xinclude $(srcdir)/fo.xsl $< | fop -q -fo - $@
|
2008-07-01 19:17:31 +02:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-api/cygwin-api.html : cygwin-api.xml cygwin.xsl
|
2013-05-02 01:30:25 +02:00
|
|
|
-${XMLTO} html -o cygwin-api/ -m $(srcdir)/cygwin.xsl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-api/cygwin-api.pdf : cygwin-api.xml fo.xsl
|
2013-07-20 12:44:50 +02:00
|
|
|
-xsltproc --xinclude $(srcdir)/fo.xsl $< | fop -q -fo - $@
|
2008-07-01 19:17:31 +02:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-api.xml : cygwin-api.in.xml doctool Makefile.in
|
2013-05-02 01:30:25 +02:00
|
|
|
-./doctool -m $(DBXDIRS) -s $(srcdir) -o $@ $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2009-02-11 17:44:13 +01:00
|
|
|
faq/faq.html : $(FAQ_SOURCES)
|
2013-05-02 01:30:25 +02:00
|
|
|
-${XMLTO} html -o faq -m $(srcdir)/cygwin.xsl $(srcdir)/faq.xml
|
|
|
|
-sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq.html
|
2005-08-06 07:14:41 +02:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
doctool : doctool.c
|
2000-02-17 20:38:33 +01:00
|
|
|
gcc -g $< -o $@
|
|
|
|
|
2000-04-19 04:31:45 +02:00
|
|
|
TBFILES = cygwin-ug-net.dvi cygwin-ug-net.rtf cygwin-ug-net.ps \
|
2013-05-02 01:30:25 +02:00
|
|
|
cygwin-ug-net.pdf cygwin-ug-net.xml \
|
2000-04-19 04:35:06 +02:00
|
|
|
cygwin-api.dvi cygwin-api.rtf cygwin-api.ps \
|
2013-05-02 01:30:25 +02:00
|
|
|
cygwin-api.pdf cygwin-api.xml
|
2000-04-19 04:35:06 +02:00
|
|
|
TBDIRS = cygwin-ug-net cygwin-api
|
|
|
|
TBDEPS = cygwin-ug-net/cygwin-ug-net.html cygwin-api/cygwin-api.html
|
2000-04-19 04:31:45 +02:00
|
|
|
|
2002-01-01 18:10:13 +01:00
|
|
|
tarball : cygwin-docs.tar.bz2
|
|
|
|
cygwin-docs.tar.bz2 : $(TBFILES) $(TBDEPS)
|
2002-01-01 21:28:29 +01:00
|
|
|
find $(TBFILES) $(TBDIRS) \! -type d | sort | tar -T - -cf - | bzip2 > cygwin-docs.tar.bz2
|
2013-05-23 21:02:46 +02:00
|
|
|
|
2013-06-04 13:50:41 +02:00
|
|
|
Makefile.dep: cygwin-ug-net.xml
|
|
|
|
builddir=`pwd` \
|
|
|
|
&& cd $(srcdir) \
|
|
|
|
&& $(srcdir)/xidepend $^ > "$${builddir}/$@"
|
|
|
|
|
|
|
|
-include Makefile.dep
|