aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile25
-rw-r--r--pom.xml11
2 files changed, 24 insertions, 12 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:
diff --git a/pom.xml b/pom.xml
index b758b38..d4b8a6c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.alessandroiezzi</groupId>
- <artifactId>genwebsite</artifactId>
+ <artifactId>hyde</artifactId>
<version>0.0.1</version>
- <name>genwebsite</name>
+ <name>hyde</name>
<!-- FIXME change it to the project's website -->
- <url>http://www.example.com</url>
+ <url>https://github.com/aindros/hyde</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>