2003-06-06 19:00:42 +00:00
|
|
|
## $Id$
|
|
|
|
|
|
|
|
SUBDIRS = RSAEuro db lib api apps client sched
|
|
|
|
|
2003-06-06 20:55:08 +00:00
|
|
|
###########################################################################
|
|
|
|
# The rest of the rules below deal with making .tar.gz, .tar.bz2, and .zip
|
|
|
|
# files. There are two sets of distributions: full and client. full is built
|
|
|
|
# by "make dist" and client is built by "make dist-client". The
|
|
|
|
# NOT_IN_CLIENT_TARBALL variable contains sources that are not in the client
|
|
|
|
# distribution.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Putting a directory name recursively copies the entire contents - the
|
|
|
|
# dist-hook below gets rid of CVS directories.
|
|
|
|
|
2003-06-06 19:00:42 +00:00
|
|
|
EXTRA_DIST = \
|
2003-06-06 20:55:08 +00:00
|
|
|
mac_build win_build \
|
|
|
|
doc html_ops html_user \
|
|
|
|
stripchart \
|
2003-06-06 19:00:42 +00:00
|
|
|
test/*.xml test/*.php test/*wu test/*result test/*output \
|
|
|
|
test/*input test/*.inc \
|
|
|
|
INSTALL LICENSE
|
|
|
|
|
|
|
|
NOT_IN_CLIENT_TARBALL = db doc html_ops html_user lib stripchart sched test tools api
|
|
|
|
|
|
|
|
distdir_client = $(PACKAGE)_client-$(VERSION)
|
|
|
|
|
|
|
|
am__remove_distdir_client = \
|
|
|
|
{ test ! -d $(distdir_client) \
|
|
|
|
|| { find $(distdir_client) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
|
|
|
&& rm -fr $(distdir_client); }; }
|
|
|
|
|
|
|
|
distdir-client: distdir
|
2003-06-06 20:55:08 +00:00
|
|
|
rm -fr $(distdir_client)
|
2003-06-06 19:00:42 +00:00
|
|
|
mv $(distdir) $(distdir_client)
|
2003-06-06 20:55:08 +00:00
|
|
|
cd $(distdir_client) && rm -r $(NOT_IN_CLIENT_TARBALL) && cd ..
|
2003-06-06 19:00:42 +00:00
|
|
|
|
|
|
|
client-dist-gzip: distdir-client-client
|
|
|
|
$(AMTAR) chof - $(distdir_client) | GZIP=$(GZIP_ENV) gzip -c >$(distdir_client).tar.gz
|
|
|
|
$(am__remove_distdir_client)
|
|
|
|
|
|
|
|
client-dist-bzip2: distdir-client-client
|
|
|
|
$(AMTAR) chof - $(distdir_client) | bzip2 -9 -c >$(distdir_client).tar.bz2
|
|
|
|
$(am__remove_distdir_client)
|
|
|
|
|
|
|
|
client-dist-zip: distdir-client-client
|
|
|
|
-rm -f $(distdir_client).zip
|
|
|
|
zip -rq $(distdir_client).zip $(distdir_client)
|
|
|
|
$(am__remove_distdir_client)
|
|
|
|
|
|
|
|
dist-client dist-client-all: distdir-client
|
|
|
|
$(AMTAR) chof - $(distdir_client) | GZIP=$(GZIP_ENV) gzip -c >$(distdir_client).tar.gz
|
|
|
|
$(AMTAR) chof - $(distdir_client) | bzip2 -9 -c >$(distdir_client).tar.bz2
|
|
|
|
-rm -f $(distdir_client).zip
|
|
|
|
zip -rq $(distdir_client).zip $(distdir_client)
|
|
|
|
$(am__remove_distdir_client)
|
|
|
|
|
|
|
|
# dist-all defined through automake makes the normal non-client distribution.
|
|
|
|
|
|
|
|
dist-all: dist-client-all
|
|
|
|
|
2003-06-06 22:02:54 +00:00
|
|
|
## remove CVS directories.
|
|
|
|
## remove carriage returns in case CVS screwed it up.
|
2003-06-06 20:55:08 +00:00
|
|
|
dist-hook:
|
|
|
|
rm -rf `find $(distdir) -name CVS`
|
2003-06-06 22:02:54 +00:00
|
|
|
cd $(distdir)/win_build && perl -pi.bak -e 'tr /\r//d' boinc.dsw */*.dsp
|
2003-06-06 20:55:08 +00:00
|
|
|
|
2003-06-06 19:00:42 +00:00
|
|
|
.PHONY: distdir-client client-dist-gzip client-dist-gzip2 client-dist-zip \
|
|
|
|
dist-client dist-client-all
|