newlib/winsup/doc/Makefile.in

109 lines
3.3 KiB
Makefile
Raw Normal View History

2000-02-17 20:38:33 +01:00
# -*- Makefile -*- for winsup/doc
# Copyright (c) 1998-2000, 2001, 2002, 2004, 2005, 2006, 2008, 2009, 2010,
# 2013, 2014 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@
datarootdir:=@datarootdir@
docdir = @docdir@
htmldir = @htmldir@
override INSTALL:=@INSTALL@
override INSTALL_DATA:=@INSTALL_DATA@
MKDIRP:=$(INSTALL) -m 755 -d
2000-02-17 20:38:33 +01:00
CC:=@CC@
CC_FOR_TARGET:=@CC@
XMLTO:=xmlto --skip-validation --with-dblatex
2000-02-17 20:38:33 +01:00
include $(srcdir)/../Makefile.common
FAQ_SOURCES:= $(wildcard $(srcdir)/faq*.xml)
.SUFFIXES: .html .body
.html.body:
$(srcdir)/bodysnatcher.pl $<
2000-02-17 20:38:33 +01:00
.PHONY: all clean install install-all install-pdf install-html tarball
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 \
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz \
cygwin-api/cygwin-api.html \
faq/faq.body faq/faq.html \
cygwin-ug-net/cygwin-ug-net.pdf \
cygwin-api/cygwin-api.pdf
2000-02-17 20:38:33 +01: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
rm -f *.html *.html.gz
rm -Rf cygwin-api cygwin-ug cygwin-ug-net faq
2000-02-17 20:38:33 +01:00
install: install-all
install-all: install-pdf install-html
install-pdf: cygwin-ug-net/cygwin-ug-net.pdf cygwin-api/cygwin-api.pdf
@$(MKDIRP) $(DESTDIR)$(docdir)
$(INSTALL_DATA) $^ $(DESTDIR)$(docdir)
install-html: cygwin-ug-net/cygwin-ug-net.html cygwin-api/cygwin-api.html
@$(MKDIRP) $(DESTDIR)$(htmldir)/cygwin-ug-net
$(INSTALL_DATA) cygwin-ug-net/*.html $(DESTDIR)$(htmldir)/cygwin-ug-net
$(INSTALL_DATA) cygwin-ug-net/cygwin-ug-net.html $(DESTDIR)$(htmldir)/cygwin-ug-net/index.html
@$(MKDIRP) $(DESTDIR)$(htmldir)/cygwin-api
$(INSTALL_DATA) cygwin-api/*.html $(DESTDIR)$(htmldir)/cygwin-api
$(INSTALL_DATA) cygwin-api/cygwin-api.html $(DESTDIR)$(htmldir)/cygwin-api/index.html
2000-02-17 20:38:33 +01: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
-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
cygwin-ug-net/cygwin-ug-net.html : cygwin-ug-net.xml cygwin.xsl
-$(XMLTO) html -o cygwin-ug-net/ -m $(srcdir)/cygwin.xsl $<
2000-02-17 20:38:33 +01:00
cygwin-ug-net/cygwin-ug-net.pdf : cygwin-ug-net.xml fo.xsl
-$(XMLTO) pdf -o cygwin-ug-net/ $<
cygwin-api/cygwin-api.html : cygwin-api.xml cygwin.xsl
-$(XMLTO) html -o cygwin-api/ -m $(srcdir)/cygwin.xsl $<
2000-02-17 20:38:33 +01:00
cygwin-api/cygwin-api.pdf : cygwin-api.xml fo.xsl
-$(XMLTO) pdf -o cygwin-api/ $<
2000-02-17 20:38:33 +01:00
faq/faq.html : $(FAQ_SOURCES)
-$(XMLTO) html -o faq -m $(srcdir)/cygwin.xsl $(srcdir)/faq.xml
-sed -i 's;<a name="id[mp][0-9]*"></a>;;g' faq/faq.html
TBFILES = cygwin-ug-net.dvi cygwin-ug-net.rtf cygwin-ug-net.ps \
cygwin-ug-net.pdf cygwin-ug-net.xml \
cygwin-api.dvi cygwin-api.rtf cygwin-api.ps \
cygwin-api.pdf cygwin-api.xml
TBDIRS = cygwin-ug-net cygwin-api
TBDEPS = cygwin-ug-net/cygwin-ug-net.html cygwin-api/cygwin-api.html
2002-01-01 18:10:13 +01: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
2013-05-23 21:02:46 +02:00
Makefile.dep: cygwin-ug-net.xml cygwin-api.xml
cd $(srcdir) && ./xidepend $^ > "${CURDIR}/$@"
-include Makefile.dep