forked from GitHub/gf-core
Added 'run' target to gf-server Makefile. It compiles the server, and starts lighttpd.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
GFCFLAGS = +RTS -K100M -RTS --cpu
|
GFCFLAGS = +RTS -K100M -RTS --cpu
|
||||||
|
|
||||||
.PHONY: pgf.fcgi food demo
|
.PHONY: pgf.fcgi run
|
||||||
|
|
||||||
pgf.fcgi:
|
pgf.fcgi:
|
||||||
cabal configure
|
cabal configure
|
||||||
@@ -10,7 +10,7 @@ pgf.fcgi:
|
|||||||
gwt:
|
gwt:
|
||||||
gwt-client/Translate-compile
|
gwt-client/Translate-compile
|
||||||
|
|
||||||
food:
|
food.pgf:
|
||||||
gfc --make --name=grammar ../../examples/tutorial/food/Food{Eng,Ita}.gf
|
gfc --make --name=grammar ../../examples/tutorial/food/Food{Eng,Ita}.gf
|
||||||
|
|
||||||
Demo%-parse.pgf: ../../lib/resource/demo/Demo%.gf
|
Demo%-parse.pgf: ../../lib/resource/demo/Demo%.gf
|
||||||
@@ -34,6 +34,12 @@ lang.pgf: LangBul-noparse.pgf LangCat-noparse.pgf LangDan-parse.pgf LangEng-pars
|
|||||||
test.pgf: LangEng-parse.pgf LangGer-parse.pgf
|
test.pgf: LangEng-parse.pgf LangGer-parse.pgf
|
||||||
gfc $(GFCFLAGS) --name=test $^
|
gfc $(GFCFLAGS) --name=test $^
|
||||||
|
|
||||||
|
run: pgf.fcgi
|
||||||
|
@echo '*********************************************'
|
||||||
|
@echo 'See http://localhost:41296/gwt-client/www/se.chalmers.cs.gf.gwt_translate.Translate/Translate.html'
|
||||||
|
@echo '*********************************************'
|
||||||
|
lighttpd -f lighttpd.conf -D
|
||||||
|
|
||||||
gwt-installball: pgf.fcgi gwt
|
gwt-installball: pgf.fcgi gwt
|
||||||
rm -rf tmp/gwt-client
|
rm -rf tmp/gwt-client
|
||||||
rm -f gf-server-installball.tar.gz
|
rm -f gf-server-installball.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user