summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-05-24 21:35:49 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-05-24 21:35:49 +0200
commit7f9db2e32838cac315965d986518fc61cf44567e (patch)
treea12d3d824161ef12114b724d6cfda238454833a3 /Makefile
parent3e6a6e0efb13f3dc8989a4a2f74e5ea91820eb7a (diff)
Let's have it just load everything, to start with.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3456fd2..7403528 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ BIN_DIR ?= ${CURDIR}/bin/
LIB_DIR ?= ${CURDIR}/lib/
TARGET ?= hastabel2idp.jar
+RUN_SCRIPT ?= hastabel2idp.sh
INSTALL_DIR ?= $(LIB_DIR)
#### Where to get the missing Jar files.
@@ -50,12 +51,12 @@ CLASSPATH = "$(SRC_DIR):$(BIN_DIR):$(ANTLR_JAR):$(HASTABEL_JAR)"
## Makefile Magic ##############################################################
JAVA_SOURCES = \
- $(wildcard $(SRC_DIR)/hastabel/*.java) \
- $(wildcard $(SRC_DIR)/hastabel/*/*.java)
+ $(wildcard $(SRC_DIR)/hastabel2idp/*.java) \
+ $(wildcard $(SRC_DIR)/hastabel2idp/*/*.java)
CLASSES = $(patsubst $(SRC_DIR)/%,$(BIN_DIR)/%, $(JAVA_SOURCES:.java=.class))
## Makefile Rules ##############################################################
-$(TARGET): $(ANTLR_JAR) $(HASTABEL_JAR) $(JAVA_SOURCES) $(CLASSES)
+$(TARGET): $(ANTLR_JAR) $(HASTABEL_JAR) $(JAVA_SOURCES) $(CLASSES) $(RUN_SCRIPT)
rm -f $(TARGET) $(INSTALL_DIR)/$@
$(JAR) cf $@ -C $(BIN_DIR) .
cp $@ $(INSTALL_DIR)/$@
@@ -78,6 +79,11 @@ $(LIB_DIR):
$(BIN_DIR):
mkdir -p $@
+$(RUN_SCRIPT): Makefile
+ echo "#!/bin/sh" > $@
+ echo "$(JAVA) -cp \"$(CLASSPATH)\" hastabel2idp.Main $$*" >> $@
+ chmod +x $@
+
##### For my private use...
publish: $(TARGET)
scp $< dreamhost:~/noot-noot/tabellion/jar/