-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (22 loc) · 706 Bytes
/
Makefile
File metadata and controls
23 lines (22 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
APPNAME = licknet
DIR = "."#`cd $$(dirname "${BASH_SOURCE[0]}") && pwd`
LIBDIR = lib
LIBGS = gs-core-1.2.jar
LIBGSALGO = gs-algo-1.2.jar
LIBTG = tuxguitar-lib.jar
LIBTGGTP = tuxguitar-gtp.jar
LIBTGGPX = tuxguitar-gpx.jar
CLASSPATH = $(DIR)/$(LIBDIR)/$(LIBGS):$(DIR)/$(LIBDIR)/$(LIBGSALGO):$(DIR)/$(LIBDIR)/$(LIBTG):$(DIR)/$(LIBDIR)/$(LIBTGGTP):$(DIR)/$(LIBDIR)/$(LIBGPX)
BUILDDIR = build
DISTDIR = dist
OUTJAR = $(DIR)/$(DISTDIR)/$(APPNAME).jar
JAVAPATH = `readlink -f $$(which java)`
EXECUTABLE = $(APPNAME).sh
MAINCLASS = $(APPNAME).Main
all:
ant
@echo "#!/bin/bash\n\
$(JAVAPATH) -cp $(CLASSPATH):$(OUTJAR) $(MAINCLASS)" > $(EXECUTABLE)
@chmod +x $(EXECUTABLE)
clean:
ant clean; rm $(EXECUTABLE)