2000-02-17 19:38:33 +00:00
|
|
|
# -*- Makefile -*- for winsup/doc
|
2001-12-04 04:20:31 +00:00
|
|
|
# Copyright (c) 1998-2000,2001 Red Hat, Inc.
|
2000-02-17 19:38:33 +00: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@
|
|
|
|
|
2000-04-19 00:55:19 +00:00
|
|
|
SGMLDIRS = -d $(srcdir) -d $(utils_source) -d $(cygwin_source)
|
|
|
|
|
2000-02-17 19:38:33 +00:00
|
|
|
CC:=@CC@
|
|
|
|
CC_FOR_TARGET:=@CC@
|
|
|
|
exeext:=@build_exeext@
|
|
|
|
|
2010-01-26 16:16:19 +00:00
|
|
|
XMLTO:=xmlto --skip-validation
|
|
|
|
|
2000-02-17 19:38:33 +00:00
|
|
|
include $(srcdir)/../Makefile.common
|
|
|
|
|
2004-01-11 08:32:09 +00:00
|
|
|
TOCLEAN:=faq.txt ./*.html readme.txt doctool.o doctool.exe *.junk \
|
2005-08-06 05:14:41 +00:00
|
|
|
cygwin-ug.sgml cygwin-ug cygwin-ug-net.html.gz \
|
2004-01-11 08:32:09 +00:00
|
|
|
cygwin-ug-net.sgml cygwin-ug-net cygwin-ug-net.html \
|
2005-08-06 05:14:41 +00:00
|
|
|
cygwin-api.sgml cygwin-api cygwin-api-int.sgml cygwin-api-int \
|
|
|
|
faq
|
2000-02-17 19:38:33 +00:00
|
|
|
|
2009-02-11 16:44:13 +00:00
|
|
|
FAQ_SOURCES:= faq-api.xml faq-programming.xml faq-resources.xml \
|
|
|
|
faq-sections.xml faq-setup.xml faq-using.xml faq-what.xml faq.xml
|
|
|
|
|
2000-02-17 19:38:33 +00:00
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
all : \
|
|
|
|
cygwin-ug-net/cygwin-ug-net.html \
|
2009-07-20 15:08:08 +00:00
|
|
|
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz \
|
2001-06-13 17:54:55 +00:00
|
|
|
cygwin-api/cygwin-api.html \
|
2008-07-01 17:17:31 +00:00
|
|
|
faq/faq.html faq/faq-nochunks.html \
|
|
|
|
cygwin-ug-net/cygwin-ug-net.pdf \
|
2009-07-20 15:08:08 +00:00
|
|
|
cygwin-api/cygwin-api.pdf
|
2000-02-17 19:38:33 +00:00
|
|
|
|
|
|
|
clean:
|
2004-01-11 08:32:09 +00:00
|
|
|
rm -Rf $(TOCLEAN)
|
2000-02-17 19:38:33 +00:00
|
|
|
|
|
|
|
install: all
|
|
|
|
|
2009-07-20 15:08:08 +00:00
|
|
|
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz : cygwin-ug-net.sgml doctool
|
2010-01-26 16:16:19 +00:00
|
|
|
-${XMLTO} html-nochunks -m $(srcdir)/cygwin.dsl $<
|
2004-12-27 19:03:56 +00:00
|
|
|
-cp cygwin-ug-net.html cygwin-ug-net/cygwin-ug-net-nochunks.html
|
2005-01-29 22:35:17 +00:00
|
|
|
-rm -f cygwin-ug-net/cygwin-ug-net-nochunks.html.gz
|
2004-12-27 19:03:56 +00:00
|
|
|
-gzip cygwin-ug-net/cygwin-ug-net-nochunks.html
|
2004-01-11 08:32:09 +00:00
|
|
|
|
2000-02-17 19:38:33 +00:00
|
|
|
cygwin-ug-net/cygwin-ug-net.html : cygwin-ug-net.sgml doctool
|
2010-01-26 16:16:19 +00:00
|
|
|
-${XMLTO} html -o cygwin-ug-net/ -m $(srcdir)/cygwin.dsl $<
|
2000-02-17 19:38:33 +00:00
|
|
|
|
2009-07-20 15:08:08 +00:00
|
|
|
# Some versions of jw hang with the -o option
|
|
|
|
cygwin-ug-net/cygwin-ug-net.pdf : cygwin-ug-net.sgml
|
|
|
|
-cd cygwin-ug-net && docbook2pdf ../$<
|
2008-07-01 17:17:31 +00:00
|
|
|
|
2000-02-17 19:38:33 +00:00
|
|
|
cygwin-ug-net.sgml : cygwin-ug-net.in.sgml ./doctool Makefile
|
2000-04-19 00:55:19 +00:00
|
|
|
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
|
2000-02-17 19:38:33 +00:00
|
|
|
|
|
|
|
cygwin-api/cygwin-api.html : cygwin-api.sgml
|
2010-01-26 16:16:19 +00:00
|
|
|
-${XMLTO} html -o cygwin-api/ -m $(srcdir)/cygwin.dsl $<
|
2000-02-17 19:38:33 +00:00
|
|
|
|
2008-07-01 17:17:31 +00:00
|
|
|
cygwin-api/cygwin-api.pdf : cygwin-api.sgml
|
2009-07-20 15:08:08 +00:00
|
|
|
-cd cygwin-api && docbook2pdf ../$<
|
2008-07-01 17:17:31 +00:00
|
|
|
|
2000-02-17 19:38:33 +00:00
|
|
|
cygwin-api.sgml : cygwin-api.in.sgml ./doctool Makefile
|
2000-04-19 00:55:19 +00:00
|
|
|
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
|
2000-02-17 19:38:33 +00:00
|
|
|
|
2009-02-11 16:44:13 +00:00
|
|
|
faq/faq.html : $(FAQ_SOURCES)
|
2010-01-26 16:16:19 +00:00
|
|
|
-${XMLTO} html -o faq -m $(srcdir)/cygwin.dsl $(srcdir)/faq-sections.xml
|
2005-08-27 01:32:36 +00:00
|
|
|
-sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq.*.html
|
2005-08-06 05:14:41 +00:00
|
|
|
|
2009-02-11 16:44:13 +00:00
|
|
|
faq/faq-nochunks.html : $(FAQ_SOURCES)
|
2010-01-26 16:16:19 +00:00
|
|
|
-${XMLTO} html -o faq -m $(srcdir)/cygwin.dsl $(srcdir)/faq.xml
|
2005-08-27 01:32:36 +00:00
|
|
|
-sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq-nochunks.html
|
2005-08-06 05:14:41 +00:00
|
|
|
|
2000-02-17 19:38:33 +00:00
|
|
|
./doctool : doctool.c
|
|
|
|
gcc -g $< -o $@
|
|
|
|
|
2000-04-19 02:31:45 +00:00
|
|
|
TBFILES = cygwin-ug-net.dvi cygwin-ug-net.rtf cygwin-ug-net.ps \
|
|
|
|
cygwin-ug-net.pdf cygwin-ug-net.sgml \
|
2000-04-19 02:35:06 +00:00
|
|
|
cygwin-api.dvi cygwin-api.rtf cygwin-api.ps \
|
|
|
|
cygwin-api.pdf cygwin-api.sgml
|
|
|
|
TBDIRS = cygwin-ug-net cygwin-api
|
|
|
|
TBDEPS = cygwin-ug-net/cygwin-ug-net.html cygwin-api/cygwin-api.html
|
2000-04-19 02:31:45 +00:00
|
|
|
|
2002-01-01 17:10:13 +00:00
|
|
|
tarball : cygwin-docs.tar.bz2
|
|
|
|
cygwin-docs.tar.bz2 : $(TBFILES) $(TBDEPS)
|
2002-01-01 20:28:29 +00:00
|
|
|
find $(TBFILES) $(TBDIRS) \! -type d | sort | tar -T - -cf - | bzip2 > cygwin-docs.tar.bz2
|