OSDN Git Service

fix comment in example code
[ccunit/ccunit.git] / Makefile.am
index af516d1..8216969 100644 (file)
@@ -1,27 +1,28 @@
 ## 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
+SUBDIRS=. src tests examples
+DIST_SUBDIRS= $(SUBDIRS) doc
 AM_CFLAGS=-I$(top_srcdir)/src -Wall -Werror
 AM_LDFLAGS=-L$(top_srcdir)/src/ccunit
 CLEANFILES=*~ .*~ ./\#*\# *.log configure.scan *.tar.gz *.tar.bz2 *.zip \
@@ -29,5 +30,27 @@ CLEANFILES=*~ .*~ ./\#*\# *.log configure.scan *.tar.gz *.tar.bz2 *.zip \
 
 EXTRA_DIST = BUGS ChangeLog ChangeLog.0 \
        config/arg_with_doxygen.m4 \
-       config/ac_create_prefix_config_h.m4
-
+       config/ac_create_prefix_config_h.m4 \
+       config/arg_enable_coverage.m4
+
+docs:
+       cd doc; $(MAKE) docs
+
+distdocdir=$(PACKAGE)-$(VERSION)-doc
+
+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); }; }
+
+distdocdir: docs
+       { test ! -d $(distdocdir) \
+         || { find $(distdocdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+               && rm -fr $(distdocdir); }; }
+       mkdir $(distdocdir)
+       $(mkinstalldirs) $(distdocdir)/html