]> err.no Git - dpkg/commitdiff
Fix 'make distcheck' by adding uninstall-local target to
authorFrank Lichtenheld <djpig@debian.org>
Tue, 3 Jul 2007 23:42:39 +0000 (23:42 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Tue, 3 Jul 2007 23:42:39 +0000 (23:42 +0000)
man/Makefile.am that removes the translated man pages.

TODO
man/ChangeLog
man/Makefile.am

diff --git a/TODO b/TODO
index b4d445a19ccab9687b754fbfe083b5ad958a80bc..3e317827dd65f375958ae7ba0866b0ef74efee6a 100644 (file)
--- a/TODO
+++ b/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)
index 58d0969d177292975a610255f13a4ab4f1cfb87a..1ae01919317483adcd9a1bb7e958280763edfa9b 100644 (file)
@@ -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.
index 2a35185dd57649451348ecfded526a741e3e9c87..f219ff382c12c759d6cb92933b3a44fafdf67d02 100644 (file)
@@ -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 \