-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.conf
63 lines (50 loc) · 2.1 KB
/
Makefile.conf
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
################################################################################
############################## Variables to change #############################
##### Choose the syntax extension you want between camlp4 (deprecated since
##### js_of_ocaml >= 2.7) and ppx (available for js_of_ocaml >= 2.7)
##### Default is ppx if SYNTAX_EXTENSION is set to different values than ppx or
##### camlp4
SYNTAX_EXTENSION = ppx
##### Use gen_js_api or not
USE_GEN_JS_API = True
##### Set DEBUG to True if you don't want to minify css files (just compile).
##### Set to false if you're in dev.
DEBUG = True
##### PROJECT VARIABLES
PROJECT_NAME = OcamlCordovaStatusBar
VERSION = 1.0.0
#####
DEV_DIRECTORY = app
PROD_DIRECTORY = www
##### js_of_ocaml configuration
ML_DIRECTORY = $(DEV_DIRECTORY)/ml
ML_FILES = $(ML_DIRECTORY)/test.ml
ML_JS_DIRECTORY = $(PROD_DIRECTORY)/js
ML_JS_OUTPUT_FILE = main.js
CUSTOM_SYNTAX =
CUSTOM_PACKAGE = -package gen_js_api \
-package cordova \
-package cordova-plugin-statusbar
##### Less configuration
LESS_DIR = $(DEV_DIRECTORY)/less
LESS_FILES =
##### Output directories for css files
CSS_DIR = $(PROD_DIRECTORY)/css
CSS_FILES = $(patsubst $(LESS_DIR)/%.less, $(CSS_DIR)/%.css, $(LESS_FILES))
##### DIRECTORIES AND FILES TO COPY FROM DEV LOCATION TO WWW LOCATION
##### By default, it copies index.html
DEV_DIRECTORY_LIST = $(DEV_DIRECTORY)/index.html
##### Don't change this variable if you you want to keep the same directory structure into the prod directory
PROD_DIRECTORY_LIST = $(patsubst $(DEV_DIRECTORY)/%, $(PROD_DIRECTORY)/%, $(DEV_DIRECTORY_LIST))
##### BUILD DIRECTORY
BUILD_DIRECTORY = $(shell pwd)/build
BUILD_NAME_TEMPLATE = $(PROJECT_NAME)-$(VERSION)-$(shell date +%Y%m%d.%H%M%S)
BUILD_RELEASE_NAME_TEMPLATE = $(PROJECT_NAME)-$(VERSION)
##### PLUGINS
PLUGINS = cordova-plugin-whitelist \
cordova-plugin-statusbar
OPAM_PKG = js_of_ocaml \
gen_js_api \
cordova \
cordova-plugin-statusbar
################################################################################