2000-02-17 20:38:33 +01:00
|
|
|
# -*- Makefile -*- for winsup/doc
|
|
|
|
#
|
|
|
|
# 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@
|
2015-06-12 14:33:13 +02:00
|
|
|
mandir = @mandir@
|
|
|
|
man1dir = $(mandir)/man1
|
2015-06-16 19:55:38 +02:00
|
|
|
man3dir = $(mandir)/man3
|
2015-03-11 14:50:51 +01:00
|
|
|
infodir:=@infodir@
|
2017-04-21 13:26:10 +02:00
|
|
|
sysconfdir:=@sysconfdir@
|
2014-10-22 22:04:42 +02:00
|
|
|
|
|
|
|
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
|
2015-07-05 20:09:16 +02:00
|
|
|
DOCBOOK2XTEXI:=@DOCBOOK2XTEXI@ --xinclude --info --utf8trans-map=charmap
|
2010-01-26 17:16:19 +01:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
include $(srcdir)/../Makefile.common
|
2015-06-12 14:30:50 +02:00
|
|
|
-include Makefile.dep
|
2000-02-17 20:38:33 +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
|
|
|
|
2015-03-11 14:50:51 +01:00
|
|
|
.PHONY: all clean install install-all install-pdf install-html install-man \
|
2017-04-21 13:26:10 +02:00
|
|
|
info install-info install-etc
|
2014-10-22 22:04:42 +02:00
|
|
|
|
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 \
|
2015-06-12 14:33:13 +02:00
|
|
|
cygwin-api/cygwin-api.pdf \
|
2015-06-16 19:55:38 +02:00
|
|
|
utils2man.stamp \
|
2015-03-11 14:50:51 +01:00
|
|
|
api2man.stamp \
|
2015-06-22 15:58:09 +02:00
|
|
|
intro2man.stamp \
|
2015-03-11 14:50:51 +01:00
|
|
|
cygwin-ug-net.info cygwin-api.info
|
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
|
2015-06-12 14:33:13 +02:00
|
|
|
rm -f *.1 utils2man.stamp
|
2015-06-16 19:55:38 +02:00
|
|
|
rm -f *.3 api2man.stamp
|
2015-03-11 14:50:51 +01:00
|
|
|
rm -f *.info* charmap
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2014-10-22 22:04:42 +02:00
|
|
|
install: install-all
|
|
|
|
|
2017-04-21 13:26:10 +02:00
|
|
|
install-all: install-pdf install-html install-man install-info install-etc
|
2014-10-22 22:04:42 +02:00
|
|
|
|
|
|
|
install-pdf: cygwin-ug-net/cygwin-ug-net.pdf cygwin-api/cygwin-api.pdf
|
|
|
|
@$(MKDIRP) $(DESTDIR)$(docdir)
|
|
|
|
$(INSTALL_DATA) $^ $(DESTDIR)$(docdir)
|
2015-06-12 14:30:50 +02:00
|
|
|
|
2014-10-22 22:04:42 +02:00
|
|
|
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
|
2017-04-22 13:49:27 +02:00
|
|
|
-(cd $(DESTDIR)$(htmldir)/cygwin-ug-net && ln -f cygwin-ug-net.html index.html)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/docbook.css $(DESTDIR)$(htmldir)/cygwin-ug-net
|
2014-10-22 22:04:42 +02:00
|
|
|
@$(MKDIRP) $(DESTDIR)$(htmldir)/cygwin-api
|
|
|
|
$(INSTALL_DATA) cygwin-api/*.html $(DESTDIR)$(htmldir)/cygwin-api
|
2017-04-22 13:49:27 +02:00
|
|
|
-(cd $(DESTDIR)$(htmldir)/cygwin-api && ln -f cygwin-api.html index.html)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/docbook.css $(DESTDIR)$(htmldir)/cygwin-api
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2015-06-22 15:58:09 +02:00
|
|
|
install-man: utils2man.stamp api2man.stamp intro2man.stamp
|
2015-06-12 14:33:13 +02:00
|
|
|
@$(MKDIRP) $(DESTDIR)$(man1dir)
|
|
|
|
$(INSTALL_DATA) *.1 $(DESTDIR)$(man1dir)
|
2015-06-18 14:16:01 +02:00
|
|
|
@$(MKDIRP) $(DESTDIR)$(man3dir)
|
2015-06-16 19:55:38 +02:00
|
|
|
$(INSTALL_DATA) *.3 $(DESTDIR)$(man3dir)
|
2015-06-12 14:33:13 +02:00
|
|
|
|
2015-03-11 14:50:51 +01:00
|
|
|
install-info: cygwin-ug-net.info cygwin-api.info
|
|
|
|
$(MKDIRP) $(DESTDIR)$(infodir)
|
|
|
|
$(INSTALL_DATA) *.info* $(DESTDIR)$(infodir)
|
|
|
|
|
2017-04-21 13:26:10 +02:00
|
|
|
install-etc:
|
|
|
|
@$(MKDIRP) $(DESTDIR)$(sysconfdir)/postinstall
|
|
|
|
$(INSTALL) $(srcdir)/etc.postinstall.cygwin-doc.sh $(DESTDIR)$(sysconfdir)/postinstall/cygwin-doc.sh
|
|
|
|
@$(MKDIRP) $(DESTDIR)$(sysconfdir)/preremove
|
|
|
|
$(INSTALL) $(srcdir)/etc.preremove.cygwin-doc.sh $(DESTDIR)$(sysconfdir)/preremove/cygwin-doc.sh
|
|
|
|
|
2015-06-16 19:15:20 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net-nochunks.html.gz : $(cygwin-ug-net_SOURCES) html.xsl
|
|
|
|
-$(XMLTO) html-nochunks -m $(srcdir)/html.xsl $<
|
2015-06-12 15:18:07 +02:00
|
|
|
-@$(MKDIRP) cygwin-ug-net
|
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
|
|
|
|
2015-06-16 19:15:20 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.html : $(cygwin-ug-net_SOURCES) html.xsl
|
|
|
|
-$(XMLTO) html -o cygwin-ug-net/ -m $(srcdir)/html.xsl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2015-06-12 14:30:50 +02:00
|
|
|
cygwin-ug-net/cygwin-ug-net.pdf : $(cygwin-ug-net_SOURCES) fo.xsl
|
2015-06-12 17:07:21 +02:00
|
|
|
-$(XMLTO) pdf -o cygwin-ug-net/ -m $(srcdir)/fo.xsl $<
|
2008-07-01 19:17:31 +02:00
|
|
|
|
2015-06-12 22:26:32 +02:00
|
|
|
utils2man.stamp: $(cygwin-ug-net_SOURCES) man.xsl
|
|
|
|
$(XMLTO) man -m ${srcdir}/man.xsl $<
|
2015-06-12 14:33:13 +02:00
|
|
|
@touch $@
|
|
|
|
|
2015-03-11 14:50:51 +01:00
|
|
|
cygwin-ug-net.info: $(cygwin-ug-net_SOURCES) charmap
|
|
|
|
-$(DOCBOOK2XTEXI) $(srcdir)/cygwin-ug-net.xml --string-param output-file=cygwin-ug-net
|
|
|
|
|
2015-06-16 19:15:20 +02:00
|
|
|
cygwin-api/cygwin-api.html : $(cygwin-api_SOURCES) html.xsl
|
|
|
|
-$(XMLTO) html -o cygwin-api/ -m $(srcdir)/html.xsl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2015-06-12 14:30:50 +02:00
|
|
|
cygwin-api/cygwin-api.pdf : $(cygwin-api_SOURCES) fo.xsl
|
2015-06-12 17:07:21 +02:00
|
|
|
-$(XMLTO) pdf -o cygwin-api/ -m $(srcdir)/fo.xsl $<
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2015-06-12 22:26:32 +02:00
|
|
|
api2man.stamp: $(cygwin-api_SOURCES) man.xsl
|
|
|
|
$(XMLTO) man -m ${srcdir}/man.xsl $<
|
2015-06-16 19:55:38 +02:00
|
|
|
@touch $@
|
|
|
|
|
2015-03-11 14:50:51 +01:00
|
|
|
cygwin-api.info: $(cygwin-api_SOURCES) charmap
|
|
|
|
-$(DOCBOOK2XTEXI) $(srcdir)/cygwin-api.xml --string-param output-file=cygwin-api
|
|
|
|
|
|
|
|
# this generates a custom charmap for docbook2x-texi which has a mapping for ®
|
|
|
|
charmap:
|
|
|
|
cp /usr/share/docbook2X/charmaps/texi.charmap charmap
|
|
|
|
echo "ae (R)" >>charmap
|
|
|
|
|
2015-06-22 15:58:09 +02:00
|
|
|
intro2man.stamp: intro.xml man.xsl
|
|
|
|
-$(XMLTO) man -m ${srcdir}/man.xsl $<
|
|
|
|
@echo ".so intro.1" >cygwin.1
|
|
|
|
@touch $@
|
|
|
|
|
2015-06-16 19:18:11 +02:00
|
|
|
faq/faq.html : $(faq_SOURCES)
|
2015-06-16 19:15:20 +02:00
|
|
|
-$(XMLTO) html -o faq -m $(srcdir)/html.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
|
|
|
|
2015-06-16 19:18:11 +02:00
|
|
|
Makefile.dep: cygwin-ug-net.xml cygwin-api.xml faq.xml
|
2013-11-07 01:19:52 +01:00
|
|
|
cd $(srcdir) && ./xidepend $^ > "${CURDIR}/$@"
|