aboutsummaryrefslogtreecommitdiff
path: root/src/make.configuration.deps
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-25 06:27:56 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-25 06:27:56 +0000
commite6127db547407be2e1370b8606292fb1ca02dc47 (patch)
tree65b7bd9ef58f0602dc777d9b3d4f5cac6f0f1485 /src/make.configuration.deps
parent0cabbe576ebc962c54c797682c54a3bacbc5297f (diff)
Add comments
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@8 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/make.configuration.deps')
-rw-r--r--src/make.configuration.deps16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/make.configuration.deps b/src/make.configuration.deps
index 997f9f5..fa7954b 100644
--- a/src/make.configuration.deps
+++ b/src/make.configuration.deps
@@ -5,12 +5,19 @@
# Create a tarball of the source code whenever this thorn is linked
# into an executable
+
$(EXEDIR)$(DIRSEP)$(EXE): make-tarball
CACTUSLIBLINKLINE += $(SCRATCH_BUILD)/cactus-source.a
+# 1. Create a list of files that should be in the tarball
+# 2. Create the tarball
+# 3. Use the makeblob utility (from this thorn; see make.code.deps)
+# to create C source code from the tarball
+# 4. Compile C code and create an archive
+
.PHONY: make-tarball
make-tarball:
@echo "Creating source tarball..." && \
@@ -19,9 +26,14 @@ make-tarball:
dirs="lib src" && \
thorns="$(THORNS:%=arrangements/%)" && \
filelist=$(SCRATCH_BUILD)/source-file-list && \
- find $$files $$dirs $$thorns -path 'arrangements/*/*/doc' -prune -o -path 'arrangements/*/*/test' -prune -o -print > $$filelist && \
+ find $$files $$dirs $$thorns \
+ -path 'arrangements/*/*/doc' -prune \
+ -o -path 'arrangements/*/*/test' -prune \
+ -o -path 'arrangements/*/*/par' -prune \
+ -o -print > $$filelist && \
echo "Adding" `cat $$filelist | wc -l` "files..." && \
- tar czf "$(SCRATCH_BUILD)/cactus-source.tar.gz" --no-recursion -T $$filelist && \
+ tar czf "$(SCRATCH_BUILD)/cactus-source.tar.gz" \
+ --no-recursion -T $$filelist && \
echo "Created tarball with" `cat $(SCRATCH_BUILD)/cactus-source.tar.gz | wc -c` "bytes..." && \
cd $(SCRATCH_BUILD) && \
rm -rf cactus-source && \