Skip to content
Snippets Groups Projects
Commit 72eaca92 authored by Moritz Hanke's avatar Moritz Hanke
Browse files

adds Makefile to retrieve mesh data

parent 010b90b5
No related branches found
No related tags found
No related merge requests found
SUBDIRS := mesh src
.PHONY: all $(MAKECMDGOALS) $(SUBDIRS)
$(MAKECMDGOALS) all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
MESH_FILE_LINK = https://kannu.csc.fi/s/npxnWEzPowrd2by/download/MESH_Greenland.tgz
MESH_FILE = $(notdir $(MESH_FILE_LINK))
.PHONY: all clean
all: $(MESH_FILE)
clean:
rm -rf MESH*
$(MESH_FILE):
echo $@
echo fetching: $@
curl -sL $(MESH_FILE_LINK) -o $@
echo unpacking: $@
tar xvf $@
......@@ -15,6 +15,8 @@ LIBS = \
CC = mpicc
LD = mpicc
.PHONY: clean
.SUFFIXES:
all: elmer_dummy.x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment