-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
27 lines (20 loc) · 1.24 KB
/
Makefile
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
CLOSURE_COMPILER=java -jar $(HOME)/Downloads/compiler.jar --language_in ECMASCRIPT5_STRICT --warning_level VERBOSE --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/forge.js --externs externs/globals.js --jscomp_error=missingProperties
BUILD_DIR=build
all: $(BUILD_DIR)/keyczar_util.js $(BUILD_DIR)/keyczar.js $(BUILD_DIR)/keyczar_util_test.js $(BUILD_DIR)/keyczar_test.js $(BUILD_DIR)/roundtripper.js
clean:
$(RM) -r $(BUILD_DIR)
$(BUILD_DIR)/keyczar_util.js: keyczar_util.js
mkdir -p $(dir $@)
$(CLOSURE_COMPILER) --js $^ --js_output_file $@
$(BUILD_DIR)/keyczar.js: keyczar_util.js keyczar.js
mkdir -p $(dir $@)
$(CLOSURE_COMPILER) --js $^ --js_output_file $@
$(BUILD_DIR)/keyczar_util_test.js: keyczar_util.js test_util.js keyczar_util_test.js
mkdir -p $(dir $@)
$(CLOSURE_COMPILER) --externs externs/assert.js --js $^ --js_output_file $@
$(BUILD_DIR)/keyczar_test.js: keyczar_util.js keyczar.js test_util.js keyczar_test.js
mkdir -p $(dir $@)
$(CLOSURE_COMPILER) --externs externs/assert.js --externs externs/fs.js --js $^ --js_output_file $@
$(BUILD_DIR)/roundtripper.js: keyczar_util.js keyczar.js roundtripper.js
mkdir -p $(dir $@)
$(CLOSURE_COMPILER) --externs externs/assert.js --externs externs/fs.js --js $^ --js_output_file $@