#---------------------------------------------------------------------- # SETTINGS FOR THE ELIOM PROJECT codeformula #---------------------------------------------------------------------- PROJECT_NAME := codeformula # In OCaml<4 source code files must be given in linking order :( # Source files for the server SERVER_FILES := bootstrap.eliom mathjax.eliom prism.eliom page.eliom services.eliom news.eliom codeformula.eliom feed.eliom card.eliom card_distribution_gaussian.eliom card_distribution_laplace.eliom card_expfam_gaussian.eliom card_expfam_laplace.eliom cardlist.eliom # Source files for the client CLIENT_FILES := codeformula.eliom # OCamlfind packages for the server SERVER_PACKAGES := formula # OCamlfind packages for the client CLIENT_PACKAGES := # Directory with files to be statically served LOCAL_STATIC = static # The backend for persistent data. Can be dbm or sqlite. PERSISTENT_DATA_BACKEND = dbm # Debug application (yes/no): Debugging info in compilation, # JavaScript, ocsigenserver DEBUG := no # User to run server with (make run.*) WWWUSER := www-data WWWGROUP := www-data # Port for running the server (make run.*) PORT := 80 # Port for testing (make test.*) TEST_PORT := 8080 # Root of installation (must end with /) PREFIX := / # Local folder for make test.* (must end with /) TEST_PREFIX := local/ # The installation tree (relative to $(PREFIX) when # installing/running or $(TEST_PREFIX) when testing). # Configuration file $(PROJECT_NAME).conf ETCDIR := etc/${PROJECT_NAME} # Project's library $(PROJECT_NAME).cma (cmxs) LIBDIR := var/lib/${PROJECT_NAME} # Command pipe, eg. $ echo restart > $(INSTALL_PREFIX)$(CMDPIPE) CMDPIPE := var/run/${PROJECT_NAME}-cmd # Ocsigenserver's logging files LOGDIR := var/log/${PROJECT_NAME} # Ocsigenserver's persistent data files DATADIR := var/data/${PROJECT_NAME} # Copy of $(LOCAL_STATIC) STATICDIR := var/www/${PROJECT_NAME}/static # Project's JavaScript file ELIOMSTATICDIR := var/www/${PROJECT_NAME}/eliom