X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=Makefile;h=cc5c222cbb7dd1d4613e4431f18ede9fe7d2644d;hp=642e127af37cc51e70f78ac840c060b4e656fe2b;hb=71ac69a01a1051b24386ac67124c0aee657f3225;hpb=aa5b4ad473f730a6d780cef9387a79c41ddf47a9 diff --git a/Makefile b/Makefile index 642e127..cc5c222 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ ### ### You can use this Makefile to generate an executable JAR file ### The available options are: -### - make: will create the default (or currently compiled) JAR +### - make: will create the JAR file (must be compiled before) ### - make bin/5 && make: will create a Java 1.5 JAR ### - make bin/6 && make: will create a Java 1.6 JAR ### - make bin/7 && make: will create a Java 1.7 JAR @@ -11,8 +11,13 @@ ALL: jvcard.jar -# Default: Java 1.5 -bin/be/nikiroo/jvcard/launcher/Main.class: bin/5 +bin/bin: bin/be/nikiroo/jvcard/launcher/Main.class src/be/nikiroo/jvcard/*/* src/be/nikiroo/jvcard/* + @echo You need to compile the code first: + @echo " make bin/5: will compile in Java 1.5 target mode" + @echo " make bin/6: will compile in Java 1.6 target mode" + @echo " make bin/7: will compile in Java 1.7 target mode" + @echo " make bin/8: will compile in Java 1.8 target mode" + @false .PHONY: ALL clean mrproper mrpropre love @@ -21,7 +26,7 @@ love: clean: @echo Cleaning files... - @rm -f bin/[0-9] bin/files bin/lanterna + @rm -f bin/[0-9] bin/bin bin/files bin/lanterna mrproper: mrpropre @@ -29,7 +34,7 @@ mrpropre: clean @echo Removing jar files... @rm -f jvcard.jar jvcard-`grep "APPLICATION_VERSION" src/be/nikiroo/jvcard/launcher/Main.java | head -n1 | cut -d'"' -f2`.jar -jvcard.jar: bin/be/nikiroo/jvcard/launcher/Main.class src/be/nikiroo/jvcard/*/* src/be/nikiroo/jvcard/* +jvcard.jar: bin/bin @echo 'Main-Class: be.nikiroo.jvcard.launcher.Main' > bin/manifest @echo >> bin/manifest @echo Creating jar file jvcard-`grep "APPLICATION_VERSION" src/be/nikiroo/jvcard/launcher/Main.java | head -n1 | cut -d'"' -f2`.jar... @@ -44,6 +49,7 @@ bin/5: bin/lanterna bin/files javac -cp bin/ -encoding UTF-8 -Xlint -Xlint:-options -source 5 -target 5 @bin/files -d bin/ @rm -f bin/[0-9] @touch bin/5 + @touch bin/bin bin/6: bin/lanterna bin/files @cp -r src/* bin/ @@ -51,6 +57,7 @@ bin/6: bin/lanterna bin/files javac -cp bin/ -encoding UTF-8 -Xlint -Xlint:-options -source 6 -target 6 @bin/files -d bin/ @rm -f bin/[0-9] @touch bin/6 + @touch bin/bin bin/7: bin/lanterna bin/files @cp -r src/* bin/ @@ -58,6 +65,7 @@ bin/7: bin/lanterna bin/files javac -cp bin/ -encoding UTF-8 -Xlint -Xlint:-options -source 7 -target 7 @bin/files -d bin/ @rm -f bin/[0-9] @touch bin/7 + @touch bin/bin bin/8: bin/lanterna bin/files @cp -r src/* bin/ @@ -65,6 +73,7 @@ bin/8: bin/lanterna bin/files javac -cp bin/ -encoding UTF-8 -Xlint -Xlint:-options -source 8 -target 8 @bin/files -d bin/ @rm -f bin/[0-9] @touch bin/8 + @touch bin/bin bin/files: src/be/nikiroo/jvcard/*/* src/be/nikiroo/jvcard/* @mkdir -p bin/