-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 713 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 713 Bytes
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
# Build RenderGraph
SHELL := /bin/bash
.PHONY: all test clean
classPath := gephi-toolkit-0.9.1-all.jar:docopt.jar
targets := RenderGraph
sources = $(addsuffix .java,$(targets))
classes = $(addsuffix .class,$(targets))
manifests = $(addsuffix .manifest,$(targets))
jars = $(addsuffix .jar,$(targets))
maxMem := 16g
all: $(targets)
clean:
-rm -f $(manifests) $(classes)
$(classes): %.class: %.java
javac -cp $(classPath):. $<
$(manifests): %.manifest: %.class
echo "Main-Class: $(subst .class,,$<)" > $@
echo "Class-Path: $(subst :, ,$(classPath))" >> $@
$(jars): %.jar: %.manifest %.class
jar cvfm $@ $^
$(targets): %: %.jar
echo 'java -Xmx$(maxMem) -jar `dirname $$0`/'$<' $$*' > $@
chmod +x $@