Skip to content

Instantly share code, notes, and snippets.

@ThomasBrittain
Created March 8, 2019 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasBrittain/6235c056b728011c0b2b7c66ce66f467 to your computer and use it in GitHub Desktop.
Save ThomasBrittain/6235c056b728011c0b2b7c66ce66f467 to your computer and use it in GitHub Desktop.
Test Project Makefile.options
#----------------------------------------------------------------------
# SETTINGS FOR THE ELIOM PROJECT TestProject
#----------------------------------------------------------------------
PROJECT_NAME := TestProject
# Source files for the server
SERVER_FILES := TestProject.eliom
# Source files for the client
CLIENT_FILES := TestProject.eliom
# OCamlfind packages for the server
SERVER_PACKAGES :=
# 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 := 443
# Port for testing (make test.*)
TEST_PORT := 8080
# Root of installation (must end with /)
PREFIX := /usr/local/
# Local folder for make test.* (must end with /)
# Do not add files manually in this directory.
# It is just here to test your installation before installing in /
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 := lib/${PROJECT_NAME}
# Command pipe, eg. $ echo reload > $(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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment