From 0dc64964b2a62d9e0c345505616dccbae83b11c9 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Wed, 23 Sep 2015 21:04:26 +0200 Subject: [PATCH] Add missing Makefile --- build_pdata.sh | 3 ++- example/Grid/Makefile | 11 +++++++++++ example/Vector/Makefile | 11 +++++++++++ script/py/pack_examples.py | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 example/Grid/Makefile create mode 100644 example/Vector/Makefile diff --git a/build_pdata.sh b/build_pdata.sh index 7ca86943..e187940d 100644 --- a/build_pdata.sh +++ b/build_pdata.sh @@ -64,8 +64,9 @@ then source ~/.bashrc sh ./autogen.sh module load gcc/4.9.2 - ./install -s + ./install -s -c "--prefix=/home/jenkins/openfpm_install" make + make install if [ $? -ne 0 ]; then exit 1 ; fi mpirun -np 2 ./src/pdata diff --git a/example/Grid/Makefile b/example/Grid/Makefile new file mode 100644 index 00000000..63062d5b --- /dev/null +++ b/example/Grid/Makefile @@ -0,0 +1,11 @@ +SUBDIRS := $(wildcard */.) + +all clean: + for dir in $(SUBDIRS); do \ + $(MAKE) -C $$dir $@; \ + done + +clean: $(SUBDIRS) + +.PHONY: all clean $(SUBDIRS) + diff --git a/example/Vector/Makefile b/example/Vector/Makefile new file mode 100644 index 00000000..63062d5b --- /dev/null +++ b/example/Vector/Makefile @@ -0,0 +1,11 @@ +SUBDIRS := $(wildcard */.) + +all clean: + for dir in $(SUBDIRS); do \ + $(MAKE) -C $$dir $@; \ + done + +clean: $(SUBDIRS) + +.PHONY: all clean $(SUBDIRS) + diff --git a/script/py/pack_examples.py b/script/py/pack_examples.py index d482a055..4dee6b54 100644 --- a/script/py/pack_examples.py +++ b/script/py/pack_examples.py @@ -90,4 +90,4 @@ class pack_example: self.add_r(dir+os.sep+example_dir) # make an archive - shutil.make_archive(file,"bztar",self.base_dir) + shutil.make_archive(file,"bztar",self.temporary) -- GitLab