diff options
author | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2006-05-04 16:26:41 +0000 |
---|---|---|
committer | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2006-05-04 16:26:41 +0000 |
commit | 1c7e5345e2ce8e66d9ef191ad2f2e587734b50a5 (patch) | |
tree | a318b9d37737b7c0efe019efb768d328d471af99 /src/make.code.deps | |
parent | cc2ee658d8cc0352da45788eb2fce0315e1cd49a (diff) |
Use Perl instead of C for makeblob and makemetablob.
Begin coupling Formaline to thorn Announce.
Create stamp files that record which build and which simulation was
run in the output directory.
Begin implementing talking to an RDF server.
Determine the host name in Perl, which is more reliable. (It is
complicated to find a good host name.)
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@75 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/make.code.deps')
-rw-r--r-- | src/make.code.deps | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/src/make.code.deps b/src/make.code.deps index a1bfdb0..04c3713 100644 --- a/src/make.code.deps +++ b/src/make.code.deps @@ -1,21 +1,47 @@ # make.code.deps file for thorn Formaline -*-Makefile-*- # $Header$ -# Store the "makeblob" utilities in the scratch directory of this -# configuration. +# Store the utilities in the scratch directory of this configuration. # This has to live here in the file make.code.deps instead of in the # file make.configuration.deps because only here the location of the -# source file makeblob.c is known. +# source directory is known. TARBALL_DIR = $(SCRATCH_BUILD) -$(CCTK_TARGET): $(TARBALL_DIR)/makeblob.pl $(TARBALL_DIR)/makemetablob.pl +$(CCTK_TARGET): $(TARBALL_DIR)/gethostname.pl $(TARBALL_DIR)/makeblob.pl $(TARBALL_DIR)/makemetablob.pl +$(TARBALL_DIR)/gethostname.pl: $(SRCDIR)/util/gethostname.pl + cd $(TARBALL_DIR) && cp $^ $@ + $(TARBALL_DIR)/makeblob.pl: $(SRCDIR)/util/makeblob.pl cd $(TARBALL_DIR) && cp $^ $@ $(TARBALL_DIR)/makemetablob.pl: $(SRCDIR)/util/makemetablob.pl cd $(TARBALL_DIR) && cp $^ $@ + + + + + + +# Unique ID for the build +$(TARBALL_DIR)/build-id.o: $(TARBALL_DIR)/build-id.c + $(CC) $(CFLAGS) -c -o $@ $^ + +# (force a new ID to be created every time) +.PHONY: $(TARBALL_DIR)/build-id.c +$(TARBALL_DIR)/build-id.c: + { \ + echo '/* This is an auto-generated file -- do not edit */'; \ + hostname=`hostname`; \ + user="$$USER"; \ + timestamp=`date +%Y%m%d-%H%M%S`; \ + pid="$$$$"; \ + id="build-$$hostname-$$user-$$timestamp-$$pid"; \ + echo 'char const build_id[] = "'$$id'";'; \ + } > $@ + +.PRECIOUS: $(TARBALL_DIR)/build-id.c $(TARBALL_DIR)/build-id.o |