forked from matsim-org/matsim-episim-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (28 loc) · 969 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Working directory
WD := ../shared-svn/projects/episim/matsim-files
# All available Scenarios
ALL := OpenBerlin Berlin Munich Heinsberg
JAR := matsim-episim-*.jar
# Shortcut to the scenario creation tool
sc = java -cp $(JAR) org.matsim.run.ScenarioCreation
.PHONY: all clean battery $(ALL)
# Default target
all: $(JAR) $(ALL)
$(JAR):
mvn package -DskipTests
clean:
rm -rf target
# Helper script for deploying the battery
battery:
rsync -rvPc battery $(USER)@blogin.hlrn.de:/scratch/usr/$(USER)
deploy-jar: $(JAR)
scp $(JAR) $(USER)@blogin.hlrn.de:/scratch/usr/$(USER)/battery/$(RUN)
# TODO: these can be removed if we get the input files directly or the creation process is simplyfied
# Includes all the scenarios with local variables
# https://stackoverflow.com/questions/32904790/can-i-have-local-variables-in-included-makefiles
SUBDIRS := scenarios/*.mk
define INCLUDE_FILE
path = $S
include $S
endef
$(foreach S,$(SUBDIRS),$(eval $(INCLUDE_FILE)))