Parcourir la source

fix/simplify buildsystem for the (now) po4a-only manpages

David Kalnischkies il y a 16 ans
Parent
commit
93517da394
6 fichiers modifiés avec 13 ajouts et 73 suppressions
  1. 3 11
      .bzrignore
  2. 2 1
      buildlib/po4a_manpage.mak
  3. 0 45
      buildlib/sgml_manpage.mak
  4. 4 5
      doc/es/makefile
  5. 0 8
      doc/makefile
  6. 4 3
      doc/pt_BR/makefile

+ 3 - 11
.bzrignore

@@ -9,7 +9,8 @@ autom4te.cache/
 build/
 configure
 
-# generated apt man pages
+# generated files in the progress to build all
+# apt man pages and other documentation
 doc/*.1
 doc/*.5
 doc/*.8
@@ -17,14 +18,5 @@ doc/*/*.1
 doc/*/*.5
 doc/*/*.8
 doc/*/apt.ent
-
-# ignore xml man page files generated by po4a
-# older translation methods translate in this files
-# so we can not ignore it for all translations now
 doc/*/*.xml
-
-# FIXME: files generated by deprecated sgml man pages
-doc/es/manpage.links
-doc/es/manpage.refs
-doc/pt_BR/manpage.links
-doc/pt_BR/manpage.refs
+doc/*/*.sgml

+ 2 - 1
buildlib/po4a_manpage.mak

@@ -35,7 +35,8 @@ $($(LOCAL)-LIST) :: % : %.xml $(INCLUDES)
 .PHONY: veryclean/$(LOCAL)
 veryclean/$(LOCAL):
 	-rm -rf $($(@F)-LIST) apt.ent apt.$(LC).8 \
-		$(addsuffix .xml,$($(@F)-LIST))
+		$(addsuffix .xml,$($(@F)-LIST)) \
+		offline.$(LC).sgml guide.$(LC).sgml
 
 HAVE_PO4A=yes
 endif

+ 0 - 45
buildlib/sgml_manpage.mak

@@ -1,45 +0,0 @@
-# -*- make -*-
-
-# This handles man pages in DocBook SGMLL 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 sgml files are called apt-cache.8.sgml
-
-# See defaults.mak for information about LOCAL
-
-# Some local definitions
-ifdef DOCBOOK2MAN
-
-LOCAL := sgml-manpage-$(firstword $(SOURCE))
-$(LOCAL)-LIST := $(SOURCE)
-
-# Install generation hooks
-doc: $($(LOCAL)-LIST)
-veryclean: veryclean/$(LOCAL)
-
-$($(LOCAL)-LIST) :: % : %.sgml $(INCLUDES)
-	echo Creating man page $@
-	$(DOCBOOK2MAN) $<
-
-# Clean rule
-.PHONY: veryclean/$(LOCAL)
-veryclean/$(LOCAL):
-	-rm -rf $($(@F)-LIST)
-
-HAVE_SGML=yes
-endif
-
-INCLUDES :=
-
-ifndef HAVE_SGML
-# 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

+ 4 - 5
doc/es/makefile

@@ -5,8 +5,7 @@ SUBDIR=doc/es
 # Bring in the default rules
 include ../../buildlib/defaults.mak
 
-# Man pages
-SOURCE = apt-cache.es.8 apt-get.es.8 apt-cdrom.es.8 apt.conf.es.5 \
-         sources.list.es.5 apt-config.es.8 apt_preferences.es.5
-INCLUDES = apt.ent.es
-include $(SGML_MANPAGE_H)
+# Language Code of this translation
+LC=es
+
+include $(PO4A_MANPAGE_H)

+ 0 - 8
doc/makefile

@@ -43,14 +43,6 @@ veryclean-subdirs:
 	for dir in $(SUBDIRS); do\
 		$(MAKE) -C $$dir veryclean; \
 	done
-	# FIXME remove created sgml files, but preserve all
-	# which are "left over" from older systems.
-	# After completing the transition this should be handled
-	# in the po4a-manpage makefile for all translations
-	for dir in $(subst /addendum/,, $(dir $(wildcard */addendum/*))); do\
-		rm -f $$dir/offline.$$dir.sgml; \
-		rm -f $$dir/guide.$$dir.sgml; \
-	done
 
 ifdef PO4A
 doc: po4a

+ 4 - 3
doc/pt_BR/makefile

@@ -5,6 +5,7 @@ SUBDIR=doc/pt_BR
 # Bring in the default rules
 include ../../buildlib/defaults.mak
 
-SOURCE = apt_preferences.pt_BR.5
-INCLUDES = apt.ent.pt_BR
-include $(SGML_MANPAGE_H)
+# Language Code of this translation
+LC=pt_BR
+
+include $(PO4A_MANPAGE_H)