Commit 03b91301 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

new distribution rules

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2385
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 0a26fcba
# this is <Makefile>
# ----------------------------------------------------------------------------
# Makefile for work/src/libs/libtime
# ($Id: Makefile,v 2.28 2007-06-29 08:33:14 tforb Exp $)
# ($Id: Makefile,v 2.29 2007-09-13 10:27:10 tforb Exp $)
#
# how to build all flavours of libtime
#
......@@ -119,6 +119,8 @@ ALLCODE=$(KERNEL) $(FCODE) $(FHANDLER) $(CWRAPPER) $(CCODE) $(CHANDLER) \
$(CXXCODE) $(CTESTS) $(FTESTS) $(CXXTESTS) timeutil.c \
$(HEADERS)
README=README README.changes README.files README.unsplit
#======================================================================
#
# dependencies
......@@ -166,7 +168,7 @@ clean:
xargs --no-run-if-empty /bin/rm -v
-/bin/rm -v flist libtime.doc *.tmp *.htmp
flist: $(KERNEL) $(FCODE) $(CWRAPPER) $(CCODE) $(wildcard Makefile README*) \
flist: $(KERNEL) $(FCODE) $(CWRAPPER) $(CCODE) Makefile $(README) \
timeutil.c timeutil.h libtime.h $(FHANDLER) $(CHANDLER) \
$(CTESTS) $(FTESTS) libtime++.h $(CXXTESTS) $(CXXCODE) doxyfull.cfg
echo $^ | tr ' ' '\n' | sort > $@
......@@ -279,15 +281,16 @@ libtime.doc: README kernel.tmp fortran.tmp libtime.htmp timeutil.htmp \
# WWW distribution
WWWPATH=$(HOME)/public_html/download/software/libtime
wwwdistrib: libtime.tar.gz libtime.doc
wwwdistrib: libtime.doc $(README)
mkdir -pv $(WWWPATH)
ln -sfv $(WWWPATH) wwwpath
/bin/cp -v $< wwwpath
/bin/cp -v libtime.doc wwwpath/libtime.txt
/bin/cp -vf tests/example++.cc README* wwwpath
cd $(WWWPATH); /bin/rm -fv libtime*.tar.*
cd $(WWWPATH); ln -sfv ../libtime*.tar.* .
/bin/cp -vf libtime.doc wwwpath/libtime.txt
/bin/cp -vf tests/example++.cc $(README) wwwpath
/usr/bin/yes end | $(MAKE) tests
/usr/bin/yes end | $(MAKE) testsexe > wwwpath/tests.out
tests/example++ > wwwpath/example.out
/usr/bin/yes end | ( $(MAKE) testsexe 2>&1 ) > wwwpath/tests.out
( tests/example++ 2>&1 ) > wwwpath/example.out
wwwclean:
/bin/rm -rfv wwwpath/* wwwpath
......@@ -312,7 +315,10 @@ VERSIONCODE=$(shell date +'%Y%m%d')
PACKAGE=libtime$(VERSIONCODE)
PUBLICATIONPATH=$(HOME)/public_html/download/software
TMPPATH=$(HOME)/tmp/$(PACKAGE)
package:
distributiondir: README README.changes README.files README.unsplit
package:
/bin/rm -rfv $(TMPPATH); mkdir -pv $(TMPPATH)
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/libs/libtime
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/LICENSE.GPL
......@@ -329,5 +335,6 @@ package:
gzip --force -9 $(PUBLICATIONPATH)/$(PACKAGE).tar
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
bzip2 -f $(PUBLICATIONPATH)/$(PACKAGE).tar
$(MAKE) wwwdistrib
# ----- END OF Makefile -----
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment