(install-man): Always supply 'else' clause to 'if'
authorTom Tromey <tromey@redhat.com>
Sun, 26 Nov 1995 05:49:39 +0000 (05:49 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 26 Nov 1995 05:49:39 +0000 (05:49 +0000)
lib/am/mans.am
mans.am

index c8509b1..582d265 100644 (file)
@@ -1,20 +1,22 @@
 install-man:
-       for man in $(MANS); do \
+       for man in $(MANS); do                  \
          sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
          inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
-         mdir=$(mandir)/man$$sect; \
-         $(top_srcdir)/mkinstalldirs $$mdir; \
+         mdir=$(mandir)/man$$sect;             \
+         $(top_srcdir)/mkinstalldirs $$mdir;   \
          echo installing $$man as $$mdir/$$inst; \
          $(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
-         cdir=$(mandir)/cat$$sect; \
-         if test -d $$cdir; then \
+         cdir=$(mandir)/cat$$sect;             \
+         if test -d $$cdir; then               \
            echo formatting $$man as $$cdir/$$inst; \
            $(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \
-         fi; \
+         else                                  \
+           true;                               \
+         fi;                                   \
        done
 
 uninstall-man:
-       for man in $(MANS); do \
+       for man in $(MANS); do
          sect=`echo $$man|sed 's%.*\(\.[0-9][a-z]*\)$$%\1%'`; \
          inst=`basename $$man $sect|sed '$(transform)'`.$$sect; \
          mdir=$(mandir)/man$$sect; \
diff --git a/mans.am b/mans.am
index c8509b1..582d265 100644 (file)
--- a/mans.am
+++ b/mans.am
@@ -1,20 +1,22 @@
 install-man:
-       for man in $(MANS); do \
+       for man in $(MANS); do                  \
          sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
          inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
-         mdir=$(mandir)/man$$sect; \
-         $(top_srcdir)/mkinstalldirs $$mdir; \
+         mdir=$(mandir)/man$$sect;             \
+         $(top_srcdir)/mkinstalldirs $$mdir;   \
          echo installing $$man as $$mdir/$$inst; \
          $(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
-         cdir=$(mandir)/cat$$sect; \
-         if test -d $$cdir; then \
+         cdir=$(mandir)/cat$$sect;             \
+         if test -d $$cdir; then               \
            echo formatting $$man as $$cdir/$$inst; \
            $(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \
-         fi; \
+         else                                  \
+           true;                               \
+         fi;                                   \
        done
 
 uninstall-man:
-       for man in $(MANS); do \
+       for man in $(MANS); do
          sect=`echo $$man|sed 's%.*\(\.[0-9][a-z]*\)$$%\1%'`; \
          inst=`basename $$man $sect|sed '$(transform)'`.$$sect; \
          mdir=$(mandir)/man$$sect; \