Source

OCaml-WebFramework / cgi-bin / Makefile

##
## Makefile for OCaml-OCR in /website/cgi-bin
## 
## Made by Pierre Surply
## <pierre.surply@gmail.com>
## 
## Started on  Sat Sep 15 11:14:39 2012 Pierre Surply
## Last update Sun Sep 16 15:07:16 2012 Pierre Surply
##

OCAMLBUILD = ocamlbuild
BUILDFLAGS = -lflags unix.cmxa,str.cmxa -verbose 1
BUILDTYPE  = native

MAIN	   = main.$(BUILDTYPE)
URL_TEST   = index/

all: $(MAIN)

$(MAIN):
	@$(OCAMLBUILD) $(BUILDFLAGS) $@
	@mv $(MAIN) $(EXEC)

test: REQUEST_METHOD=GET
test: QUERY_STRING=$(URL_TEST)
test: $(MAIN)
	./$(EXEC)

clean:
	@$(OCAMLBUILD) -clean