Explorar o código

Ignore the man pages when building without NLS support

Closes: #457673
Guillem Jover %!s(int64=18) %!d(string=hai) anos
pai
achega
f4d708276a
Modificáronse 3 ficheiros con 33 adicións e 4 borrados
  1. 3 0
      debian/changelog
  2. 14 0
      man/ChangeLog
  3. 16 4
      man/Makefile.am

+ 3 - 0
debian/changelog

@@ -34,6 +34,9 @@ dpkg (1.14.13) UNRELEASED; urgency=low
     version requirement possibly encoded in the Build-Depends field and make
     sure that the generated dependency is at least as strict as this one.
 
+  [ Guillem Jover ]
+  * Ignore the man pages when building without NLS support. Closes: #457673
+
   [ Updated dpkg translations ]
   * Swedish (Peter Karlsson)
   * Spanish (Javier Fernández-Sanguino Peña). Closes: #456984

+ 14 - 0
man/ChangeLog

@@ -1,3 +1,17 @@
+2007-12-24  Guillem Jover  <guillem@debian.org>
+
+	* Makefile.am (all-local): Rename to ...
+	(all-local-yes): ... this.
+	(clean-local): Rename to ...
+	(clean-local-yes): ... this.
+	(install-data-local): Rename to ...
+	(install-data-local-yes): ... this.
+	(uninstall-local): Rename to ...
+	(uninstall-local-yes): ... this.
+	(all-local, all-local-no, clean-local, clean-local-no): New targets.
+	(install-data-local, install-data-local-no): Likewise.
+	(uninstall-local, uninstall-local-no): Likewise.
+
 2007-12-22  Helge Kreutzmann  <debian@helgefjell.de>
 
 	* po/de.po: Updated to 1347t0f36u.

+ 16 - 4
man/Makefile.am

@@ -1,6 +1,9 @@
 ## Process this file with automake to produce Makefile.in
 
-all-local: man.stamp
+all-local: all-local-@USE_NLS@
+
+all-local-no:
+all-local-yes: man.stamp
 
 # FIXME: Use a stamp file until po4a supports them internally.
 man.stamp:
@@ -8,7 +11,10 @@ man.stamp:
 		$(srcdir)/po/po4a.cfg
 	touch $@
 
-clean-local:
+clean-local: clean-local-@USE_NLS@
+
+clean-local-no:
+clean-local-yes:
 	po4a --rm-backups --rm-translations --variable srcdir=$(srcdir) \
 		$(srcdir)/po/po4a.cfg
 	rm -f man.stamp
@@ -21,7 +27,10 @@ update-po:
 # Extract the list of languages from the po4a config file.
 LINGUAS = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg)
 
-install-data-local:
+install-data-local: install-data-local-@USE_NLS@
+
+install-data-local-no:
+install-data-local-yes:
 	for lang in $(LINGUAS); do \
 		if [ -d $(srcdir)/$$lang ]; then \
 			files=$$(echo $(srcdir)/$$lang/*.[1-9]); \
@@ -32,7 +41,10 @@ install-data-local:
 		fi \
 	done
 
-uninstall-local:
+uninstall-local: uninstall-local-@USE_NLS@
+
+uninstall-local-no:
+uninstall-local-yes:
 	for lang in $(LINGUAS); do \
 		if [ -d $(srcdir)/$$lang ]; then \
 			files=$$(echo $(srcdir)/$$lang/*.[1-9]); \