2000-02-17 20:38:33 +01:00
|
|
|
# -*- Makefile -*- for winsup/doc
|
2013-04-23 17:49:08 +02:00
|
|
|
# Copyright (c) 1998-2000, 2001, 2002, 2004, 2005, 2006, 2008, 2009, 2010,
|
2014-10-22 22:04:42 +02:00
|
|
|
# 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@
|
|
|
|
|
2015-03-11 15:06:03 +01:00
|
|
|
prefix:=@prefix@
|
2014-10-22 22:04:42 +02:00
|
|
|
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@
|
|
|
|
|
2010-06-27 23:32:19 +02:00
|
|
|
XMLTO:=xmlto --skip-validation --with-dblatex
|
2010-01-26 17:16:19 +01:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
include $(srcdir)/../Makefile.common
|
|
|
|
|
2014-08-14 21:44:29 +02:00
|
|
|
FAQ_SOURCES:= $(wildcard $(srcdir)/faq*.xml)
|
2009-02-11 17:44:13 +01:00
|
|
|
|
2013-05-02 02:10:15 +02:00
|
|
|
.SUFFIXES: .html .body
|
|
|
|
|
|
|
|
.html.body:
|
|
|
|
$(srcdir)/bodysnatcher.pl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2014-10-22 22:04:42 +02: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 \
|
2009-07-20 17:08:08 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz \
|
2001-06-13 19:54:55 +02:00
|
|
|
cygwin-api/cygwin-api.html \
|
2013-05-02 02:10:15 +02:00
|
|
|
faq/faq.body faq/faq.html \
|
2008-07-01 19:17:31 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.pdf \
|
2009-07-20 17:08:08 +02:00
|
|
|
cygwin-api/cygwin-api.pdf
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2014-08-14 21:44:29 +02:00
|
|
|
Makefile: $(srcdir)/Makefile.in
|
2013-06-04 13:50:41 +02:00
|
|
|
/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
|
2013-05-02 01:30:25 +02:00
|
|
|
rm -f *.html *.html.gz
|
|
|
|
rm -Rf cygwin-api cygwin-ug cygwin-ug-net faq
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2014-10-22 22:04:42 +02: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
|
|
|
|
2013-05-02 01:30:25 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz : cygwin-ug-net.xml
|
2014-08-14 21:44:29 +02:00
|
|
|
-$(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
|
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
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.html : cygwin-ug-net.xml cygwin.xsl
|
2014-08-14 21:44:29 +02:00
|
|
|
-$(XMLTO) html -o cygwin-ug-net/ -m $(srcdir)/cygwin.xsl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.pdf : cygwin-ug-net.xml fo.xsl
|
2014-11-28 21:25:24 +01:00
|
|
|
-$(XMLTO) pdf -o cygwin-ug-net/ $<
|
2008-07-01 19:17:31 +02:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-api/cygwin-api.html : cygwin-api.xml cygwin.xsl
|
2014-08-14 21:44:29 +02:00
|
|
|
-$(XMLTO) html -o cygwin-api/ -m $(srcdir)/cygwin.xsl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2013-07-21 12:16:53 +02:00
|
|
|
cygwin-api/cygwin-api.pdf : cygwin-api.xml fo.xsl
|
2014-11-28 21:25:24 +01:00
|
|
|
-$(XMLTO) pdf -o cygwin-api/ $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2009-02-11 17:44:13 +01:00
|
|
|
faq/faq.html : $(FAQ_SOURCES)
|
2014-08-14 21:44:29 +02:00
|
|
|
-$(XMLTO) html -o faq -m $(srcdir)/cygwin.xsl $(srcdir)/faq.xml
|
2014-11-28 21:25:24 +01:00
|
|
|
-sed -i 's;<a name="id[mp][0-9]*"></a>;;g' faq/faq.html
|
2005-08-06 07:14:41 +02:00
|
|
|
|
2000-04-19 04:31:45 +02:00
|
|
|
TBFILES = cygwin-ug-net.dvi cygwin-ug-net.rtf cygwin-ug-net.ps \
|
2013-05-02 01:30:25 +02:00
|
|
|
cygwin-ug-net.pdf cygwin-ug-net.xml \
|
2000-04-19 04:35:06 +02:00
|
|
|
cygwin-api.dvi cygwin-api.rtf cygwin-api.ps \
|
2013-05-02 01:30:25 +02:00
|
|
|
cygwin-api.pdf cygwin-api.xml
|
2000-04-19 04:35:06 +02:00
|
|
|
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
|
2013-05-23 21:02:46 +02:00
|
|
|
|
2014-08-14 21:44:29 +02:00
|
|
|
Makefile.dep: cygwin-ug-net.xml cygwin-api.xml
|
2013-11-07 01:19:52 +01:00
|
|
|
cd $(srcdir) && ./xidepend $^ > "${CURDIR}/$@"
|
2013-06-04 13:50:41 +02:00
|
|
|
|
|
|
|
-include Makefile.dep
|