Make GWT compilation easier.

This commit is contained in:
bjorn
2008-10-22 13:29:57 +00:00
parent 245e1b3300
commit 7a2ef0bb09
14 changed files with 33 additions and 26 deletions

View File

@@ -1,13 +1,17 @@
GFCFLAGS = +RTS -K100M -RTS --cpu
.PHONY: pgf.fcgi run gf-gwt.jar
.PHONY: pgf.fcgi run gwt gf-gwt.jar
pgf.fcgi:
cabal install
cp dist/build/pgf.fcgi/pgf.fcgi .
gwt:
gwt-client/Translate-compile
gwt/Translate-compile
gf-gwt.jar: gwt
jar -cf $@ -C gwt/src se
cp $@ ../../lib/java
food.pgf:
gfc --make --name=food ../../examples/tutorial/food/Food{Eng,Ita}.gf
@@ -35,21 +39,10 @@ test.pgf: LangEng-parse.pgf LangGer-parse.pgf
run: pgf.fcgi
@echo '*********************************************'
@echo 'See http://localhost:41296/gwt-client/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html'
@echo 'See http://localhost:41296/gwt/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html'
@echo '*********************************************'
lighttpd -f lighttpd.conf -D
gwt-installball: pgf.fcgi gwt
rm -rf tmp/gwt-client
rm -f gf-server-installball.tar.gz
mkdir -p tmp/gwt-client
cp -pr gwt-client/www/se.chalmers.cs.gf.gwt_translate.Translate/* tmp/gwt-client
mv tmp/gwt-client/Translate.html tmp/gwt-client/index.html
(cd tmp && tar -zcf ../gwt-client-installball.tar.gz gwt-client)
gf-gwt.jar:
jar -cf $@ -C gwt-client/src se
clean:
cabal clean
-rm -f pgf.fcgi

View File

@@ -1,4 +0,0 @@
#!/bin/sh
APPDIR=`dirname $0`;
GWT_DIR="/Users/bringert/src/gwt-mac-1.5.2";
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_DIR/gwt-user.jar:$GWT_DIR/gwt-dev-mac.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" se.chalmers.cs.gf.gwt.TranslateApp;

View File

@@ -1,4 +0,0 @@
#!/bin/sh
APPDIR=`dirname $0`;
GWT_DIR="/Users/bringert/src/gwt-mac-1.5.2";
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_DIR/gwt-user.jar:$GWT_DIR/gwt-dev-mac.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" se.chalmers.cs.gf.gwt.TranslateApp/Translate.html;

View File

@@ -1,4 +0,0 @@
#!/bin/sh
APPDIR=`dirname $0`;
GWT_DIR="/Users/bringert/src/gwt-mac-1.5.2";
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_DIR/gwt-user.jar:$GWT_DIR/gwt-dev-mac.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" -noserver "$@" http://localhost:41296/gwt-client/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html;

View File

@@ -0,0 +1,13 @@
#!/bin/sh
APPDIR=`dirname $0`;
if [ -z "$GWT_CLASSPATH" ]; then
echo 'ERROR: $GWT_CLASSPATH is not set'
echo 'Set $GWT_CLASSPATH to point to the GWT JAR files. For example:'
echo 'export GWT_DIR="/Users/bringert/src/gwt-mac-1.5.2"'
echo 'export GWT_CLASSPATH="$GWT_DIR/gwt-user.jar:$GWT_DIR/gwt-dev-mac.jar"'
exit 1
fi
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_CLASSPATH" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" se.chalmers.cs.gf.gwt.TranslateApp;

View File

@@ -0,0 +1,13 @@
#!/bin/sh
APPDIR=`dirname $0`;
if [ -z "$GWT_CLASSPATH" ]; then
echo 'ERROR: $GWT_CLASSPATH is not set'
echo 'Set $GWT_CLASSPATH to point to the GWT JAR files. For example:'
echo 'export GWT_DIR="/Users/bringert/src/gwt-mac-1.5.2"'
echo 'export GWT_CLASSPATH="$GWT_DIR/gwt-user.jar:$GWT_DIR/gwt-dev-mac.jar"'
exit 1
fi
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_CLASSPATH" com.google.gwt.dev.GWTShell -out "$APPDIR/www" -noserver "$@" http://localhost:41296/gwt/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html;