OSDN Git Service

append dist-docs and dist-docsja
authortsntsumi <tsntsumi@users.sourceforge.jp>
Sat, 1 Nov 2003 22:40:39 +0000 (22:40 +0000)
committertsntsumi <tsntsumi@users.sourceforge.jp>
Sat, 1 Nov 2003 22:40:39 +0000 (22:40 +0000)
Makefile.am

index 2db7e40..9caf7c1 100644 (file)
@@ -38,47 +38,30 @@ docs:
 
 distdocdir=@DISTDOCDIR@
 distdocjadir=@DISTDOCJADIR@
-if ENABLE_JADOC
-dist_docsja = dist-docsja
-endif
 
-dist-docs: distdocdir dist-docsja
+dist-docs: distdocdir
        cd doc; $(MAKE) dist-docs
-       $(AMTAR) chof - $(distdocdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdocdir).tar.gz
-       $(AMTAR) chof - $(distdocdir) | bzip2 -9 -c >$(distdocdir).tar.bz2
-       -rm -f $(distdocdir).zip
-       zip -rq $(distdocdir).zip $(distdocdir)
-       { test ! -d $(distdocdir) \
-         || { find $(distdocdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
-               && rm -fr $(distdocdir); }; }
+       for d in $(distdocdir) $(distdocjadir); do \
+       { $(AMTAR) chof - $$d | GZIP=$(GZIP_ENV) gzip -c >$$d.tar.gz; \
+         $(AMTAR) chof - $$d | bzip2 -9 -c >$$d.tar.bz2; \
+         rm -f $$d.zip; \
+         zip -rq $$d.zip $$d; \
+         { test ! -d $$d \
+           || { find $$d -type d ! -perm -200 -exec chmod u+w {} ';' \
+               && rm -fr $$d; }; }; \
+       };\
+       done
 
 distdocdir: docs
-       { test ! -d $(distdocdir) \
-         || { find $(distdocdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
-               && rm -fr $(distdocdir); }; }
+       for d in $(distdocdir) $(distdocjadir); do \
+       { test ! -d $$d \
+         || { find $$d -type d ! -perm -200 -exec chmod u+w {} ';' \
+               && rm -fr $$d; }; \
+       }; \
+       done
        $(mkinstalldirs) $(distdocdir)/html
-
 if ENABLE_JADOC
-dist-docsja: distdocjadir
-       cd doc; $(MAKE) dist-docsja
-       $(AMTAR) chof - $(distdocjadir) | GZIP=$(GZIP_ENV) gzip -c >$(distdocjadir).tar.gz
-       $(AMTAR) chof - $(distdocjadir) | bzip2 -9 -c >$(distdocjadir).tar.bz2
-       -rm -f $(distdocjadir).zip
-       zip -rq $(distdocjadir).zip $(distdocjadir)
-       { test ! -d $(distdocjadir) \
-         || { find $(distdocjadir) -type d ! -perm -200 -exec chmod u+w {} ';' \
-               && rm -fr $(distdocjadir); }; }
-distdocjadir: docs
-       { test ! -d $(distdocjadir) \
-         || { find $(distdocjadir) -type d ! -perm -200 -exec chmod u+w {} ';' \
-               && rm -fr $(distdocjadir); }; }
        $(mkinstalldirs) $(distdocjadir)/html/ja
-
-else
-
-dist-docsja:
-       @true
-
 endif
 
 uploadhp: docs