eclipse plugin: Move the makefile to a better place...

...and un-hardcode the path to eclipse installation
This commit is contained in:
Timotei Dolean 2011-05-14 06:52:26 +00:00
parent 2ec9f82403
commit 01c81cef29
3 changed files with 22 additions and 18 deletions

16
utils/java/Makefile Normal file
View file

@ -0,0 +1,16 @@
JAVADOC_BINARY=javadoc
JAVADOC_DIR=javadoc
JAVADOC_FLAGS=-d $(JAVADOC_DIR) -sourcepath org.wesnoth/src -public -source 1.6 -use -version -author -splitindex -link http://java.sun.com/javase/6/docs/api/ -link http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/reference/api/ -subpackages org.wesnoth
.PHONY: readme, javadoc, build
readme:
cd org.wesnoth/readme; pdflatex README.tex
# cleanup non-needed files
cd org.wesnoth/readme; rm README.log; rm README.aux;
cd org.wesnoth/readme; cp README.pdf ..;
javadoc:
$(JAVADOC_BINARY) $(JAVADOC_FLAGS)
build:
echo 'not implemented'

View file

@ -1,7 +1,7 @@
@echo off
set ECLIPSEBIN=d:\work\java\eclipse\3.6.2\eclipse\
set BUILDDIR=d:\tmp\eclipse_build
set ECLIPSEBIN=%1
set BUILDDIR=%TEMP%\eclipse_build
mkdir %BUILDDIR%
@ -18,3 +18,7 @@ java -cp %EQUINOXJAR% org.eclipse.core.launcher.Main -data workspace -applicatio
IF EXIST ../org.wesnoth/build.xml rm ../org.wesnoth/build.xml
IF EXIST ../org.wesnoth.wml/build.xml rm ../org.wesnoth.wml/build.xml
IF EXIST ../org.wesnoth.wml.ui/build.xml rm ../org.wesnoth.wml.ui/build.xml
:end
echo Script finished.
pause

View file

@ -1,16 +0,0 @@
JAVADOC_BINARY=javadoc
JAVADOC_DIR=javadoc
JAVADOC_FLAGS=-d $(JAVADOC_DIR) -sourcepath src -public -source 1.6 -use -version -author -splitindex -link http://java.sun.com/javase/6/docs/api/ -link http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/reference/api/ -subpackages org.wesnoth
.PHONY: readme, javadoc, build
readme:
cd readme; pdflatex README.tex
# cleanup non-needed files
cd readme; rm README.log; rm README.aux;
cd readme; cp README.pdf ..;
javadoc:
$(JAVADOC_BINARY) $(JAVADOC_FLAGS)
build:
echo 'not implemented'