newlib-cygwin/winsup/doc/Makefile.in

94 lines
2.9 KiB
Makefile
Raw Normal View History

2000-02-18 03:38:33 +08:00
# -*- Makefile -*- for winsup/doc
# Copyright (c) 1998-2000,2001 Red Hat, Inc.
2000-02-18 03:38:33 +08: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@
SGMLDIRS = -d $(srcdir) -d $(utils_source) -d $(cygwin_source)
2000-02-18 03:38:33 +08:00
CC:=@CC@
CC_FOR_TARGET:=@CC@
exeext:=@build_exeext@
XMLTO:=xmlto --skip-validation --with-dblatex
2000-02-18 03:38:33 +08:00
include $(srcdir)/../Makefile.common
TOCLEAN:=faq.txt ./*.html readme.txt doctool.o doctool.exe *.junk \
cygwin-ug.sgml cygwin-ug cygwin-ug-net.html.gz \
cygwin-ug-net.sgml cygwin-ug-net cygwin-ug-net.html \
cygwin-api.sgml cygwin-api cygwin-api-int.sgml cygwin-api-int \
faq
2000-02-18 03:38:33 +08: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-18 03:38:33 +08:00
.SUFFIXES:
all : \
cygwin-ug-net/cygwin-ug-net.html \
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz \
cygwin-api/cygwin-api.html \
faq/faq.html faq/faq-nochunks.html \
cygwin-ug-net/cygwin-ug-net.pdf \
cygwin-api/cygwin-api.pdf
2000-02-18 03:38:33 +08:00
clean:
rm -Rf $(TOCLEAN)
2000-02-18 03:38:33 +08:00
install: all
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz : cygwin-ug-net.sgml doctool
-${XMLTO} html-nochunks -m $(srcdir)/cygwin.dsl $<
2004-12-28 03:03:56 +08:00
-cp cygwin-ug-net.html cygwin-ug-net/cygwin-ug-net-nochunks.html
-rm -f cygwin-ug-net/cygwin-ug-net-nochunks.html.gz
2004-12-28 03:03:56 +08:00
-gzip cygwin-ug-net/cygwin-ug-net-nochunks.html
2000-02-18 03:38:33 +08:00
cygwin-ug-net/cygwin-ug-net.html : cygwin-ug-net.sgml doctool
-${XMLTO} html -o cygwin-ug-net/ -m $(srcdir)/cygwin.dsl $<
2000-02-18 03:38:33 +08:00
# Some versions of jw hang with the -o option
cygwin-ug-net/cygwin-ug-net.pdf : cygwin-ug-net.sgml
-${XMLTO} pdf -o cygwin-ug-net/ $<
2000-02-18 03:38:33 +08:00
cygwin-ug-net.sgml : cygwin-ug-net.in.sgml ./doctool Makefile
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
2000-02-18 03:38:33 +08:00
cygwin-api/cygwin-api.html : cygwin-api.sgml
-${XMLTO} html -o cygwin-api/ -m $(srcdir)/cygwin.dsl $<
2000-02-18 03:38:33 +08:00
cygwin-api/cygwin-api.pdf : cygwin-api.sgml
-${XMLTO} pdf -o cygwin-api/ $<
2000-02-18 03:38:33 +08:00
cygwin-api.sgml : cygwin-api.in.sgml ./doctool Makefile
-./doctool -m $(SGMLDIRS) -s $(srcdir) -o $@ $<
2000-02-18 03:38:33 +08:00
faq/faq.html : $(FAQ_SOURCES)
-${XMLTO} html -o faq -m $(srcdir)/cygwin.dsl $(srcdir)/faq-sections.xml
-sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq.*.html
faq/faq-nochunks.html : $(FAQ_SOURCES)
-${XMLTO} html -o faq -m $(srcdir)/cygwin.dsl $(srcdir)/faq.xml
-sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq-nochunks.html
2000-02-18 03:38:33 +08:00
./doctool : doctool.c
gcc -g $< -o $@
TBFILES = cygwin-ug-net.dvi cygwin-ug-net.rtf cygwin-ug-net.ps \
cygwin-ug-net.pdf cygwin-ug-net.sgml \
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
2002-01-02 01:10:13 +08:00
tarball : cygwin-docs.tar.bz2
cygwin-docs.tar.bz2 : $(TBFILES) $(TBDEPS)
find $(TBFILES) $(TBDIRS) \! -type d | sort | tar -T - -cf - | bzip2 > cygwin-docs.tar.bz2