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