X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=Makefile;h=cc5c222cbb7dd1d4613e4431f18ede9fe7d2644d;hb=e27d1404e9222796fb6097ab41cff873148b65c7;hp=6348110a35c26c15eea49510e89e645d3d4fb2c2;hpb=ed91f27a4f628ec59b0e85cdbb0319287c503f9d;p=jvcard.git diff --git a/Makefile b/Makefile index 6348110..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,11 +34,11 @@ 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... - jar cfm jvcard-`grep "APPLICATION_VERSION" src/be/nikiroo/jvcard/launcher/Main.java | head -n1 | cut -d'"' -f2`.jar bin/manifest -C bin/ be -C bin/ com + jar cfm jvcard-`grep "APPLICATION_VERSION" src/be/nikiroo/jvcard/launcher/Main.java | head -n1 | cut -d'"' -f2`.jar bin/manifest -C bin/ be -C bin/ com -C bin/ default-theme.properties -C bin/ multilang @rm bin/manifest @echo Copying to jvcard.jar... @cp jvcard-`grep "APPLICATION_VERSION" src/be/nikiroo/jvcard/launcher/Main.java | head -n1 | cut -d'"' -f2`.jar jvcard.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/