OSDN Git Service

Untracked auto generated files.
[ccunit/ccunit.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ##    Copyright (C) 2003 TSUTSUMI Kikuo.
3 ##    This file is part of the CCUnit Library.
4
5 ##    The CCUnit Library is free software; you can redistribute it and/or
6 ##    modify it under the terms of the GNU Lesser General Public License
7 ##    as published by the Free Software Foundation; either version 2.1 of
8 ##    the License, or (at your option) any later version.
9
10 ##    The CCUnit Library is distributed in the hope that it will be
11 ##    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 ##    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ##    GNU Lesser General Public License for more details.
14
15 ##    You should have received a copy of the GNU Lesser General Public
16 ##    License along with the CCUnit Library; see the file COPYING.LESSER.
17 ##    If not, write to the Free Software Foundation, Inc., 59 Temple
18 ##    Place - Suite 330, Boston, MA 02111-1307, USA.  
19
20 # $Id$
21
22 ACLOCAL_AMFLAGS = -I config
23
24 SUBDIRS=. src tests examples
25 DIST_SUBDIRS= $(SUBDIRS) doc
26 AM_CFLAGS=-I$(top_srcdir)/src -Wall -Werror
27 AM_LDFLAGS=-L$(top_srcdir)/src/ccunit
28 CLEANFILES=*~ .*~ ./\#*\# *.log configure.scan *.tar.gz *.tar.bz2 *.zip \
29         config/*~ config/.*~ _configs.sed
30
31 EXTRA_DIST = BUGS ChangeLog ChangeLog.1 ChangeLog.0 \
32         config/arg_with_doxygen.m4 \
33         config/arg_enable_coverage.m4
34
35 docs:
36         cd doc; $(MAKE)
37
38 distdocdir=@DISTDOCDIR@
39 distdocjadir=@DISTDOCJADIR@
40
41 dist-docs: distdocdir
42         cd doc; $(MAKE) dist-docs
43         for d in $(distdocdir) $(distdocjadir); do \
44         { $(AMTAR) chof - $$d | GZIP=$(GZIP_ENV) gzip -c >$$d.tar.gz; \
45           $(AMTAR) chof - $$d | bzip2 -9 -c >$$d.tar.bz2; \
46           rm -f $$d.zip; \
47           zip -rq $$d.zip $$d; \
48           { test ! -d $$d \
49             || { find $$d -type d ! -perm -200 -exec chmod u+w {} ';' \
50                 && rm -fr $$d; }; }; \
51         };\
52         done
53
54 distdocdir: docs
55         for d in $(distdocdir) $(distdocjadir); do \
56         { test ! -d $$d \
57           || { find $$d -type d ! -perm -200 -exec chmod u+w {} ';' \
58                 && rm -fr $$d; }; \
59         }; \
60         done
61         $(mkinstalldirs) $(distdocdir)/html
62 if ENABLE_JADOC
63         $(mkinstalldirs) $(distdocjadir)/html/ja
64 endif
65
66 uploadhp: docs
67         set -x
68         tar czf /tmp/html.tar.gz -C doc/html .
69         tar czf /tmp/jahtml.tar.gz -C doc/ja/html .
70         scp /tmp/html.tar.gz tsntsumi@shell.sourceforge.jp:html.tar.gz
71         scp /tmp/jahtml.tar.gz tsntsumi@shell.sourceforge.jp:jahtml.tar.gz
72         ssh tsntsumi@shell.sourceforge.jp \
73          'rm -fr /home/groups/c/cc/ccunit/htdocs/*;\
74           tar xzf html.tar.gz -C /home/groups/c/cc/ccunit/htdocs;\
75           mkdir -p /home/groups/c/cc/ccunit/htdocs/ja;\
76           tar xzf jahtml.tar.gz -C /home/groups/c/cc/ccunit/htdocs/ja'
77         rm /tmp/html.tar.gz /tmp/jahtml.tar.gz