OSDN Git Service

* doc/po4a.mk: Removed fake* stuff. Fixed all-local target so you don't
authorDavid Cantrell <dcantrell@redhat.com>
Fri, 15 Sep 2006 19:05:23 +0000 (19:05 +0000)
committerDavid Cantrell <dcantrell@redhat.com>
Fri, 15 Sep 2006 19:05:23 +0000 (19:05 +0000)
       end up in an infinite make loop trying to make '*'. Fixed the remove
       target as well.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@833 2d424fd7-7fe2-0310-af74-8bc65edeb173

ChangeLog
doc/po4a.mk

index ea3dfdf..752f345 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,10 @@ See libparted/ChangeLog and parted/ChangeLog.
 
        * doc/Makefile.am: Tabs for the updatepo target.
 
+       * doc/po4a.mk: Removed fake* stuff. Fixed all-local target so you don't
+       end up in an infinite make loop trying to make '*'. Fixed the remove
+       target as well.
+
 2006-09-01  David Cantrell  <dcantrell@redhat.com>
        * include/parted/device.h: add PED_DEVICE_VIODASD.
        * include/parted/exception.h: add ped_exception_get_handler() prototype.
index 761edb1..dd43d9c 100644 (file)
@@ -31,10 +31,7 @@ mandir = @mandir@/$(lang)
 # dist_man_MANS = $(wildcard *.[1-9])
 # Because when Makefile.in is generated, dist_man_MANS is empty, and
 # automake do not generate the install-man targets.
-dist_man_MANS = fake-page.1 fake-page.5 fake-page.8
-
-# Do not fail if these man pages do not exist
-.PHONY: fake-page.1 fake-page.5 fake-page.8
+dist_man_MANS =
 
 # Override the automake's install-man target.
 # And set dist_man_MANS according to the pages that could be generated
@@ -44,13 +41,13 @@ install-man: install-man1 install-man5 install-man8
 
 # For each .po, try to generate the man page
 all-local:
-       for po in $(srcdir)/*.$(lang).po; do \
+       for po in `ls -1 $(srcdir)/*.$(lang).po 2>/dev/null`; do \
                $(MAKE) $$(basename $${po%.$(lang).po}); \
        done
 
 # Remove the man pages that were generated from a .po
 clean-local:
-       for po in $(srcdir)/*.$(lang).po; do \
+       for po in `ls -1 $(srcdir)/*.$(lang).po 2>/dev/null`; do \
                rm -f $$(basename $${po%.$(lang).po}); \
        done