-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile.options
80 lines (58 loc) · 2.42 KB
/
Makefile.options
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#----------------------------------------------------------------------
# SETTINGS FOR YOUR PACKAGE
#----------------------------------------------------------------------
# Package name for your
PKG_NAME := ocsigen-start
PKG_VERS := 1.1.0
PKG_DESC := Skeleton for building your own Eliom application
# Source files for the server
SERVER_FILES := $(filter-out %.ppx.ml,$(wildcard \
src/*.ml* \
src/*.eliom* \
src/view/*.eliom* \
))
# Source files for the client
CLIENT_FILES := $(wildcard \
src/*.eliom* \
src/view/*.eliom* \
)
# Source files for the server
SERVER_FILES_DOC := $(wildcard \
src/*.eliomi \
src/*.mli \
src/view/*.eliomi \
)
# Source files for the client
CLIENT_FILES_DOC := $(wildcard \
src/*.eliomi \
src/view/*.eliomi \
)
# Template directory (used when installing template with distillery)
TEMPLATE_DIR := template.distillery
# Template name (name used by distillery)
TEMPLATE_NAME := os.pgocaml
##----------------------------------------------------------------------
## Generate CSS from SASS files in the template.
SCSS_FILES := $(TEMPLATE_DIR)/sass\!os.scss \
$(TEMPLATE_DIR)/sass\!demo.scss
CSS_FILES := $(TEMPLATE_DIR)/static\!defaultcss\!os.css \
$(TEMPLATE_DIR)/static\!defaultcss\!demo.css
SASS_TEMPORARY_FILENAME := .os_temporary_filename
SASS_TEMPORARY_PROJECT_NAME := os_temporary_project_name
##----------------------------------------------------------------------
# OCamlfind packages for the server
SERVER_PACKAGES := calendar safepass \
ocsigen-toolkit.server yojson re.str cohttp-lwt-unix
SERVER_PPX_PACKAGES := lwt_ppx js_of_ocaml-ppx_deriving_json ocsigen-ppx-rpc
SERVER_DB_PACKAGES := pgocaml calendar safepass resource-pooling
SERVER_DB_PPX_PACKAGES := lwt_ppx pgocaml_ppx
# OCamlfind packages for the client
CLIENT_PACKAGES := calendar ocsigen-toolkit.client re.str
CLIENT_PPX_PACKAGES := lwt_ppx js_of_ocaml-ppx_deriving_json js_of_ocaml-ppx ocsigen-ppx-rpc
# Debug package (yes/no): Debugging info in compilation
DEBUG := yes
# Native mode (yes/no): Compile also with native mode (it will always compile with byte mode)
NATIVE := yes
# Package's library $(PKG_NAME).{client,server}.cma (a,cmxa,cmxs only server side)
LIBDIR := lib/
WARNING_FLAGS=-w +A@[email protected]@20..68-37-39-44-48-69