]> git.saurik.com Git - apt.git/commitdiff
YODL
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:00 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:00 +0000 (16:52 +0000)
Author: jgg
Date: 1998-12-06 05:57:16 GMT
YODL

buildlib/configure.mak
buildlib/defaults.mak
buildlib/environment.mak.in
buildlib/yodl_manpage.mak [new file with mode: 0644]
configure.in
doc/makefile

index 2338717b2210cc0f2c5e828b07b50290317c9094..b6a84796110fb093ab4ae5d40b23c14e0a03569e 100644 (file)
@@ -22,5 +22,5 @@ aclocal.m4:
 $(BUILDDIR)/config.status: configure
        test -e $(BUILDDIR) || mkdir $(BUILDDIR)        
        (HERE=`pwd`; cd $(BUILDDIR) && $$HERE/configure)
-$(addprefix $(BUILDDIR)/,$(CONVERTED)): $(BUILDDIR)/config.status
+$(addprefix $(BUILDDIR)/,$(CONVERTED)):
        (cd $(BUILDDIR) && ./config.status)
index 464e82ff305def4de5a4f7d42147af37d95bc5e9..f46e6156c378f76bbef45ff6ea0c5363256f38ab 100644 (file)
@@ -63,6 +63,7 @@ DEBIANDOC_H = $(BASE)/buildlib/debiandoc.mak
 MANPAGE_H = $(BASE)/buildlib/manpage.mak
 PROGRAM_H = $(BASE)/buildlib/program.mak
 COPY_H = $(BASE)/buildlib/copy.mak
+YODL_MANPAGE_H = $(BASE)/buildlib/yodl_manpage.mak
 
 ifdef STATICLIBS
 LIBRARY_H += $(BASE)/buildlib/staticlibrary.mak
index 9b13c72a69d5d2abe27eaa265623e1d07c7ff3d7..6af5ebe42f3859b6668d9f48e67e864ebd4bf080 100644 (file)
@@ -19,6 +19,9 @@ INLINEDEPFLAG = -MD
 DEBIANDOC_HTML = @DEBIANDOC_HTML@
 DEBIANDOC_TEXT = @DEBIANDOC_TEXT@
 
+# YODL for the man pages
+YODL_MAN = @YODL_MAN@
+
 # Various library checks
 X11LIB = @X11LIB@
 GPMLIB = @GPMLIB@
diff --git a/buildlib/yodl_manpage.mak b/buildlib/yodl_manpage.mak
new file mode 100644 (file)
index 0000000..a5f436f
--- /dev/null
@@ -0,0 +1,42 @@
+# -*- make -*-
+
+# This handles man pages in YODL format. We convert to the respective
+# output in the source directory then copy over to the final dest. This
+# means yodl is only needed if compiling from CVS
+
+# Input
+# $(SOURCE) - The documents to use, in the form foo.sect, ie apt-cache.8
+#             the yodl files are called apt-cache.8.yo
+
+# See defaults.mak for information about LOCAL
+
+# Some local definitions
+ifdef YODL_MAN
+
+LOCAL := yodl-manpage-$(firstword $(SOURCE))
+$(LOCAL)-LIST := $(SOURCE)
+
+# Install generation hooks
+doc: $($(LOCAL)-LIST)
+veryclean: veryclean/$(LOCAL)
+
+$($(LOCAL)-LIST) :: % : %.yo
+       echo Creating man page $@
+       yodl2man -o $@ $<
+
+# Clean rule
+.PHONY: veryclean/$(LOCAL)
+veryclean/$(LOCAL):
+       -rm -rf $($(@F)-LIST)
+
+else
+
+# Strip from the source list any man pages we dont have compiled already
+SOURCE := $(wildcard $(SOURCE))
+
+endif
+
+# Chain to the manpage rule
+ifneq ($(words $(SOURCE)),0)
+include $(MANPAGE_H)
+endif
index 100784474225abd330f786c823f4444b9425cb7d..f1bbbdf385580191f230da03eca5d8cddffec59e 100644 (file)
@@ -106,4 +106,7 @@ dnl Check for debiandoc
 AC_CHECK_PROG(DEBIANDOC_HTML,debiandoc2html,"yes","")
 AC_CHECK_PROG(DEBIANDOC_TEXT,debiandoc2text,"yes","")
 
+dnl Check for YODL
+AC_CHECK_PROG(YODL_MAN,yodl2man,"yes","")
+
 AC_OUTPUT(environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in,make dirs)
index 46739eff27dd2187c4e759e89479be53ff20fe4b..8ca448465cd57e8e5d12c7b6f7fc0d6cb06f0a71 100644 (file)
@@ -11,8 +11,8 @@ SOURCE = dpkg-tech.sgml design.sgml files.sgml guide.sgml cache.sgml \
 include $(DEBIANDOC_H)
 
 # Man pages
-SOURCE = apt-cache.8 apt-get.8 apt.8 sources.list.5
-include $(MANPAGE_H)
+SOURCE = apt-cache.8 apt-get.8 apt-cdrom.8 apt.conf.5 sources.list.5
+include $(YODL_MANPAGE_H)
 
 # Examples
 SOURCE = examples/apt.conf examples/sources.list