summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2e601a2..c44ef1a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,26 @@
-INSTALLDIR=/usr/local
-DESTDIR=${INSTALLDIR}/genwebsite
-JAR=${DESTDIR}/genwebsite.jar
-LAUNCHER=genwebsite
+APPNAME=hyde
+INSTALLDIR=~
+DESTDIR=${INSTALLDIR}/.${APPNAME}
+JAR=${DESTDIR}/${APPNAME}.jar
+LAUNCHER=${APPNAME}
+
+dist:
+ mvn package
+
+env:
+ @echo "APPNAME = "${APPNAME}
+ @echo "INSTALLDIR = "${INSTALLDIR}
+ @echo "DESTDIR = "${DESTDIR}
+ @echo "JAR = "${JAR}
+ @echo "LAUNCHER = "${LAUNCHER}
install:
mkdir -p ${DESTDIR}
- cp target/genwebsite-*.jar ${JAR}
- cp genwebsite.sh.mk ${LAUNCHER}.sh
+ cp target/${APPNAME}-*-jar-with-dependencies.jar ${JAR}
+ cp ${APPNAME}.sh.mk ${LAUNCHER}.sh
chmod +x ${LAUNCHER}.sh
sed -i "" "s|DESTDIR|${JAR}|" ${LAUNCHER}.sh
- cp genwebsite.sh ${DESTDIR}
+ cp ${APPNAME}.sh ${DESTDIR}
ln -s ${DESTDIR}/${LAUNCHER}.sh ${INSTALLDIR}/bin/${LAUNCHER}
clean: