OSDN Git Service

Added AM_PROG_AR
[ccunit/ccunit.git] / Makefile.am
index bf45e4b..94e993b 100644 (file)
@@ -1,29 +1,80 @@
 ## Process this file with automake to produce Makefile.in
-#    Copyright (C) 2003 TSUTSUMI Kikuo.
-#    This file is part of the CCUnit Library.
+##    Copyright (C) 2003 TSUTSUMI Kikuo.
+##    This file is part of the CCUnit Library.
 
-#    The CCUnit Library is free software; you can redistribute it and/or
-#    modify it under the terms of the GNU Lesser General Public License
-#    as published by the Free Software Foundation; either version 2.1 of
-#    the License, or (at your option) any later version.
+##    The CCUnit Library is free software; you can redistribute it and/or
+##    modify it under the terms of the GNU Lesser General Public License
+##    as published by the Free Software Foundation; either version 2.1 of
+##    the License, or (at your option) any later version.
 
-#    The CCUnit Library is distributed in the hope that it will be
-#    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
-#    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#    GNU Lesser General Public License for more details.
+##    The CCUnit Library is distributed in the hope that it will be
+##    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+##    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+##    GNU Lesser General Public License for more details.
 
-#    You should have received a copy of the GNU Lesser General Public
-#    License along with the CCUnit Library; see the file COPYING.LESSER.
-#    If not, write to the Free Software Foundation, Inc., 59 Temple
-#    Place - Suite 330, Boston, MA 02111-1307, USA.  
+##    You should have received a copy of the GNU Lesser General Public
+##    License along with the CCUnit Library; see the file COPYING.LESSER.
+##    If not, write to the Free Software Foundation, Inc., 59 Temple
+##    Place - Suite 330, Boston, MA 02111-1307, USA.  
 
-## $Id$
+# $Id$
 
 ACLOCAL_AMFLAGS = -I config
 
-SUBDIRS=. src doc tests
-AM_CFLAGS=-I$(top_srcdir)/src -ggdb -Wall -Werror
+SUBDIRS=. src tests examples
+DIST_SUBDIRS= $(SUBDIRS) doc
+AM_CFLAGS=-I$(top_srcdir)/src -Wall -Werror
 AM_LDFLAGS=-L$(top_srcdir)/src/ccunit
-CLEANFILES=*~
+CLEANFILES=*~ .*~ ./\#*\# *.log configure.scan *.tar.gz *.tar.bz2 *.zip \
+       config/*~ config/.*~ _configs.sed
 
-EXTRA_DIST = BUGS config/cu_enable_doxygen.m4 ChangeLog
+EXTRA_DIST = BUGS ChangeLog ChangeLog.1 ChangeLog.0 \
+       config/arg_with_doxygen.m4 \
+       config/arg_enable_coverage.m4 \
+       config/ac_create_prefix_config_h.m4 \
+       config/ax_prefix_config_h.m4 \
+       configure bootstrap
+
+docs:
+       cd doc; $(MAKE)
+
+distdocdir=@DISTDOCDIR@
+distdocjadir=@DISTDOCJADIR@
+
+dist-docs: distdocdir
+       cd doc; $(MAKE) dist-docs
+       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
+       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
+       $(mkinstalldirs) $(distdocjadir)/html/ja
+endif
+
+uploadhp: docs
+       set -x
+       tar czf /tmp/html.tar.gz -C doc/html .
+       tar czf /tmp/jahtml.tar.gz -C doc/ja/html .
+       scp /tmp/html.tar.gz tsntsumi@shell.sourceforge.jp:html.tar.gz
+       scp /tmp/jahtml.tar.gz tsntsumi@shell.sourceforge.jp:jahtml.tar.gz
+       ssh tsntsumi@shell.sourceforge.jp \
+        'rm -fr /home/groups/c/cc/ccunit/htdocs/*;\
+         tar xzf html.tar.gz -C /home/groups/c/cc/ccunit/htdocs;\
+         mkdir -p /home/groups/c/cc/ccunit/htdocs/ja;\
+         tar xzf jahtml.tar.gz -C /home/groups/c/cc/ccunit/htdocs/ja'
+       rm /tmp/html.tar.gz /tmp/jahtml.tar.gz