From: Frank Lichtenheld Date: Tue, 3 Jul 2007 23:42:39 +0000 (+0000) Subject: Fix 'make distcheck' by adding uninstall-local target to X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e44a73c0aa24b1a275214bfaf8aa645f91cf627;p=dpkg Fix 'make distcheck' by adding uninstall-local target to man/Makefile.am that removes the translated man pages. --- diff --git a/TODO b/TODO index b4d445a1..3e317827 100644 --- 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) diff --git a/man/ChangeLog b/man/ChangeLog index 58d0969d..1ae01919 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,9 @@ +2007-07-04 Frank Lichtenheld + + * Makefile.am (uninstall-local): New target to + remove the translated man pages. Detected with + the help of 'make distcheck'. + 2007-07-02 Frank Lichtenheld * po/dpkg-man.pot: Regenerated. diff --git a/man/Makefile.am b/man/Makefile.am index 2a35185d..f219ff38 100644 --- a/man/Makefile.am +++ b/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 \