Ver código fonte

Fix 'make distcheck' by adding uninstall-local target to
man/Makefile.am that removes the translated man pages.

Frank Lichtenheld 19 anos atrás
pai
commit
7e44a73c0a
3 arquivos alterados com 17 adições e 2 exclusões
  1. 0 2
      TODO
  2. 6 0
      man/ChangeLog
  3. 11 0
      man/Makefile.am

+ 0 - 2
TODO

@@ -14,8 +14,6 @@ lenny
 
  * Make dpkg bootstrappable (modularize dpkg-architecture).
 
- * Fix 'make dist', po4a seems at fault.
-
  * Support udeb natively:
    - Add field Package-Type and friends.
    - Generate proper Packages files. (#383916)

+ 6 - 0
man/ChangeLog

@@ -1,3 +1,9 @@
+2007-07-04  Frank Lichtenheld  <djpig@debian.org>
+
+	* Makefile.am (uninstall-local): New target to
+	remove the translated man pages. Detected with
+	the help of 'make distcheck'.
+
 2007-07-02  Frank Lichtenheld  <djpig@debian.org>
 
 	* po/dpkg-man.pot: Regenerated.

+ 11 - 0
man/Makefile.am

@@ -27,6 +27,17 @@ install-data-local:
 		fi \
 	done
 
+uninstall-local:
+	for lang in $(LINGUAS); do \
+		if [ -d $(srcdir)/$$lang ]; then \
+			files=$$(echo $(srcdir)/$$lang/*.[1-9]); \
+			$(MAKE) uninstall-man \
+				mandir="$(mandir)/$$lang" \
+				man_MANS="" \
+				dist_man_MANS="$$files"; \
+		fi \
+	done
+
 dist-hook: man.stamp
 	cp $(srcdir)/man.stamp $(distdir)/
 	for lang in $(LINGUAS); do \