2000-02-18 03:38:33 +08:00
|
|
|
# -*- Makefile -*- for winsup/doc
|
|
|
|
# Copyright (c) 1998-2000 Cygnus Solutions.
|
|
|
|
#
|
|
|
|
# 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 08:55:19 +08:00
|
|
|
SGMLDIRS = -d $(srcdir) -d $(utils_source) -d $(cygwin_source)
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
DOC=faq.txt faq.info readme.txt readme.info
|
|
|
|
HTMLDOC=faq.html readme.html
|
|
|
|
|
|
|
|
CC:=@CC@
|
|
|
|
CC_FOR_TARGET:=@CC@
|
|
|
|
exeext:=@build_exeext@
|
|
|
|
|
|
|
|
MAKEINFO:=makeinfo
|
|
|
|
TEXI2DVI:=texi2dvi
|
|
|
|
TEXI2HTML:=texi2html
|
|
|
|
|
|
|
|
include $(srcdir)/../Makefile.common
|
|
|
|
|
|
|
|
TOCLEAN:=faq.txt *.html readme.txt doctool.o doctool \
|
|
|
|
cygwin-ug.sgml cygwin-ug-net.sgml
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
# You can add cygwin-api/cygwin-api.html if you want to.
|
|
|
|
all : \
|
|
|
|
cygwin-ug/cygwin-ug.html \
|
|
|
|
cygwin-ug-net/cygwin-ug-net.html \
|
|
|
|
cygwin-api-int/cygwin-api-int.html \
|
|
|
|
$(DOC) \
|
|
|
|
$(HTMLDOC)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TOCLEAN)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
|
|
|
|
cygwin-ug/cygwin-ug.html : cygwin-ug.sgml doctool
|
|
|
|
-db2html $<
|
|
|
|
|
|
|
|
cygwin-ug.sgml : cygwin-ug.in.sgml ./doctool Makefile
|
2000-04-19 08:55:19 +08:00
|
|
|
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
cygwin-ug-net/cygwin-ug-net.html : cygwin-ug-net.sgml doctool
|
|
|
|
-db2html $<
|
|
|
|
|
|
|
|
cygwin-ug-net.sgml : cygwin-ug-net.in.sgml ./doctool Makefile
|
2000-04-19 08:55:19 +08:00
|
|
|
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
cygwin-api/cygwin-api.html : cygwin-api.sgml
|
|
|
|
-db2html $<
|
|
|
|
|
|
|
|
cygwin-api.sgml : cygwin-api.in.sgml ./doctool Makefile
|
2000-04-19 08:55:19 +08:00
|
|
|
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
cygwin-api-int/cygwin-api-int.html : cygwin-api-int.sgml
|
|
|
|
-db2html $<
|
|
|
|
|
|
|
|
cygwin-api-int.sgml : cygwin-api.in.sgml ./doctool Makefile
|
2000-04-19 08:55:19 +08:00
|
|
|
-./doctool -i -m $(SGMLDIRS) -s $(srcdir) -b cygwin-api-int -o $@ $<
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
./doctool : doctool.c
|
|
|
|
gcc -g $< -o $@
|
|
|
|
|
2000-04-19 10:31:45 +08:00
|
|
|
%.dvi: %.sgml
|
|
|
|
-db2dvi $<
|
|
|
|
|
|
|
|
%.rtf: %.sgml
|
|
|
|
-db2rtf $<
|
|
|
|
|
|
|
|
%.ps: %.sgml
|
|
|
|
-db2ps $<
|
|
|
|
|
|
|
|
%.pdf: %.ps
|
|
|
|
-ps2pdf $< $@
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
%.info: %.texinfo
|
|
|
|
-$(MAKEINFO) -I$(srcdir) $<
|
|
|
|
|
|
|
|
%.txt: %.texinfo
|
|
|
|
-$(MAKEINFO) -I$(srcdir) $<
|
|
|
|
|
|
|
|
%.html: %.texinfo
|
|
|
|
-$(TEXI2HTML) -I$(srcdir) $<
|
|
|
|
|
|
|
|
readme.txt: readme.texinfo
|
|
|
|
-$(MAKEINFO) -I$(srcdir) --no-split --no-headers $< -o - |\
|
|
|
|
sed '/^Concept Index/,$$d' > $@
|
|
|
|
|
|
|
|
faq.html: $(srcdir)/faq.texinfo $(srcdir)/*.texinfo
|
|
|
|
-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) -split_chapter -v ./faq.texinfo; \
|
|
|
|
rm -f *.texinfo; \
|
|
|
|
cp faq_toc.html faq.html
|
2000-04-19 10:31:45 +08: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 10:35:06 +08: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 10:31:45 +08:00
|
|
|
|
|
|
|
tarball : cygwin-docs.tar.gz
|
|
|
|
cygwin-docs.tar.gz : $(TBFILES) $(TBDEPS)
|
|
|
|
tar cf - $(TBFILES) $(TBDIRS) | gzip -9 > cygwin-docs.tar.gz
|