Commit f2f25ce8 authored by Mathieu Giraud's avatar Mathieu Giraud

Makefile.algo, algo/Makefile: re-creates a global Makefile in release

See #3003.
Closes #2630.
parent 3290b0ec
# Becomes ../Makefile in a release
vidjil-algo:
$(MAKE) -C src
cd demo && sh get-sequences
$(MAKE) -C germline get-saved-data
$(MAKE) -C src/tests/data
$(MAKE) -C src test
......@@ -290,6 +290,9 @@ release_create:
echo '#define RELEASE_TAG "$(RELEASE_TAG)"' > $(RELEASE_DIR_TMP)/$(RELEASE_NAME)/$(RELEASE_ALGO)/$(RELEASE_H); \
sh create-git-version-h.sh ; cp git-version.h $(RELEASE_DIR_TMP)/$(RELEASE_NAME)/$(RELEASE_ALGO)/$(GIT_VERSION_H)
# Store a global Makefile
cp ../Makefile.algo $(RELEASE_DIR_TMP)/$(RELEASE_NAME)/Makefile
# Store also other files in archive
for file in $(RELEASE_FILES); do\
dir=$(RELEASE_DIR_TMP)/$(RELEASE_NAME)/algo/`dirname "$$file"`/; \
......@@ -313,10 +316,7 @@ release_check:
$(info ==== Checking $(RELEASE_ARCHIVE_TGZ) ====)
cd $(RELEASES_DIR) && tar xvfz $(RELEASE_ARCHIVE_TGZ)
cd $(RELEASES_DIR)/$(RELEASE_NAME) && cd demo && sh get-sequences
cd $(RELEASES_DIR)/$(RELEASE_NAME) && $(MAKE) -C germline get-saved-data
cd $(RELEASES_DIR)/$(RELEASE_NAME) && $(MAKE) -C src/tests/data
cd $(RELEASES_DIR)/$(RELEASE_NAME) && $(MAKE) -C src test
cd $(RELEASES_DIR)/$(RELEASE_NAME) && $(MAKE)
cd $(RELEASES_DIR)/$(RELEASE_NAME) && $(MAKE) -C src clean && $(MAKE) -C src static && mv $(EXEC) $(EXEC)-$(RELEASE_TAG)_`uname -m`
......
Markdown is supported
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