2000-02-17 20:38:33 +01:00
|
|
|
# -*- Makefile -*- for winsup/doc
|
2001-12-04 05:20:31 +01:00
|
|
|
# Copyright (c) 1998-2000,2001 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@
|
|
|
|
|
2000-04-19 02:55:19 +02:00
|
|
|
SGMLDIRS = -d $(srcdir) -d $(utils_source) -d $(cygwin_source)
|
|
|
|
|
2000-05-31 17:19:47 +02:00
|
|
|
# These *.info targets don't actually work, so remove them for now.
|
|
|
|
# Put them back when we figure out what to do with them. (davisb)
|
|
|
|
#DOC=faq.txt faq.info readme.txt readme.info
|
|
|
|
DOC=faq.txt readme.txt
|
2004-02-05 06:00:34 +01:00
|
|
|
HTMLDOC=faq0.html faq.html readme.html
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
CC:=@CC@
|
|
|
|
CC_FOR_TARGET:=@CC@
|
|
|
|
exeext:=@build_exeext@
|
|
|
|
|
|
|
|
MAKEINFO:=makeinfo
|
|
|
|
TEXI2DVI:=texi2dvi
|
|
|
|
TEXI2HTML:=texi2html
|
|
|
|
|
|
|
|
include $(srcdir)/../Makefile.common
|
|
|
|
|
2004-01-11 09:32:09 +01:00
|
|
|
TOCLEAN:=faq.txt ./*.html readme.txt doctool.o doctool.exe *.junk \
|
|
|
|
cygwin-ug.sgml cygwin-ug \
|
|
|
|
cygwin-ug-net.sgml cygwin-ug-net cygwin-ug-net.html \
|
|
|
|
cygwin-api.sgml cygwin-api cygwin-api-int.sgml cygwin-api-int
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
all : \
|
|
|
|
cygwin-ug-net/cygwin-ug-net.html \
|
2004-01-11 09:32:09 +01:00
|
|
|
cygwin-ug-net.html \
|
2001-06-13 19:54:55 +02:00
|
|
|
cygwin-api/cygwin-api.html \
|
2000-02-17 20:38:33 +01:00
|
|
|
$(HTMLDOC)
|
|
|
|
|
|
|
|
clean:
|
2004-01-11 09:32:09 +01:00
|
|
|
rm -Rf $(TOCLEAN)
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
install: all
|
|
|
|
|
2004-01-11 09:32:09 +01:00
|
|
|
cygwin-ug-net.html : cygwin-ug-net.sgml doctool
|
2004-12-27 20:03:56 +01:00
|
|
|
-xmlto html-nochunks -m $(srcdir)/cygwin.dsl $<
|
|
|
|
-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
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
cygwin-ug-net/cygwin-ug-net.html : cygwin-ug-net.sgml doctool
|
2004-12-27 20:03:56 +01:00
|
|
|
-xmlto html -o cygwin-ug-net/ -m $(srcdir)/cygwin.dsl $<
|
|
|
|
-mv cygwin-ug-net/index.html cygwin-ug-net/cygwin-ug-net.html
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
cygwin-ug-net.sgml : cygwin-ug-net.in.sgml ./doctool Makefile
|
2000-04-19 02:55:19 +02:00
|
|
|
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
cygwin-api/cygwin-api.html : cygwin-api.sgml
|
2004-12-27 20:03:56 +01:00
|
|
|
-xmlto html -o cygwin-api/ -m $(srcdir)/cygwin.dsl $<
|
|
|
|
-mv cygwin-api/index.html cygwin-api/cygwin-api.html
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
cygwin-api.sgml : cygwin-api.in.sgml ./doctool Makefile
|
2000-04-19 02:55:19 +02:00
|
|
|
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
./doctool : doctool.c
|
|
|
|
gcc -g $< -o $@
|
|
|
|
|
2000-04-19 04:31:45 +02:00
|
|
|
%.dvi: %.sgml
|
|
|
|
-db2dvi $<
|
|
|
|
|
|
|
|
%.rtf: %.sgml
|
|
|
|
-db2rtf $<
|
|
|
|
|
|
|
|
%.ps: %.sgml
|
|
|
|
-db2ps $<
|
|
|
|
|
|
|
|
%.pdf: %.ps
|
|
|
|
-ps2pdf $< $@
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
%.info: %.texinfo
|
2001-05-29 22:25:21 +02:00
|
|
|
-$(MAKEINFO) -I $(srcdir) $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
%.txt: %.texinfo
|
2001-05-29 22:25:21 +02:00
|
|
|
-$(MAKEINFO) -I $(srcdir) $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
%.html: %.texinfo
|
2001-05-29 22:25:21 +02:00
|
|
|
-$(TEXI2HTML) -I $(srcdir) $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2000-05-16 17:13:49 +02:00
|
|
|
readme.txt: $(srcdir)/readme.texinfo $(srcdir)/*.texinfo
|
2000-02-17 20:38:33 +01:00
|
|
|
-$(MAKEINFO) -I$(srcdir) --no-split --no-headers $< -o - |\
|
|
|
|
sed '/^Concept Index/,$$d' > $@
|
|
|
|
|
2004-02-05 06:00:34 +01:00
|
|
|
faq0.html: $(srcdir)/faq.texinfo $(srcdir)/*.texinfo
|
|
|
|
-rm -f faq_toc.html; \
|
|
|
|
for i in $(srcdir)/*.texinfo ; do \
|
|
|
|
sed < $$i -e 's?@file{\([fth]*p://[^}]*\)}?@strong{<A HREF="\1">\1</A>}?' \
|
|
|
|
-e 's?\([.+a-zA-Z0-9-]*@@[.a-zA-Z0-9-]*[a-zA-Z0-9]\)?<A HREF="mailto:\1">\1</A>?' >./`basename $$i` ; done; \
|
|
|
|
$(TEXI2HTML) -monolithic ./faq.texinfo; \
|
|
|
|
rm -f *.texinfo; \
|
2004-06-15 05:23:23 +02:00
|
|
|
sed -e 's;"faq.html;"faq0.html;g' faq.html > faq0.html; \
|
2004-02-23 00:49:15 +01:00
|
|
|
rm -f faq.html; exit 0
|
2004-02-05 06:00:34 +01:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
faq.html: $(srcdir)/faq.texinfo $(srcdir)/*.texinfo
|
2001-05-29 22:25:21 +02:00
|
|
|
-rm -f faq_toc.html; \
|
|
|
|
for i in $(srcdir)/*.texinfo ; do \
|
2000-02-17 20:38:33 +01:00
|
|
|
sed < $$i -e 's?@file{\([fth]*p://[^}]*\)}?@strong{<A HREF="\1">\1</A>}?' \
|
|
|
|
-e 's?\([.+a-zA-Z0-9-]*@@[.a-zA-Z0-9-]*[a-zA-Z0-9]\)?<A HREF="mailto:\1">\1</A>?' >./`basename $$i` ; done; \
|
2001-05-30 03:30:38 +02:00
|
|
|
$(TEXI2HTML) -split_chapter ./faq.texinfo; \
|
2000-02-17 20:38:33 +01:00
|
|
|
rm -f *.texinfo; \
|
2001-05-29 22:25:21 +02:00
|
|
|
[ -r faq_toc.html ] && mv faq_toc.html faq.html; exit 0
|
2000-04-19 04:31:45 +02: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 04:35:06 +02: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 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
|