Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

more Makefile twiddling

  • Loading branch information...
commit 89da1820bb8df1a9dfc0e8a0ff80f703dab44d8b 1 parent d2b1f42
Jeanine Adkisson jneen authored

Showing 1 changed file with 7 additions and 4 deletions. Show diff stats Hide diff stats

  1. +7 4 Makefile
11 Makefile
... ... @@ -1,14 +1,17 @@
  1 +# -*- globals -*- #
1 2 SRC_DIR = src
2 3 BUILD_DIR = build
3 4 CLEAN += $(BUILD_DIR)/*
4 5 SRC = $(SRC_DIR)/p.js
5   -UGLIFYJS ?= uglifyjs
6   -UGLY = $(BUILD_DIR)/p.min.js
7   -
8 6
  7 +.PHONY: all
9 8 all: minify commonjs amd report
10 9
11 10 # -*- minification -*- #
  11 +UGLIFYJS ?= uglifyjs
  12 +UGLIFY_OPTS += --lift-vars --unsafe
  13 +UGLY = $(BUILD_DIR)/p.min.js
  14 +
12 15 $(UGLY): $(SRC)
13 16 $(UGLIFYJS) $< > $@
14 17
@@ -24,7 +27,7 @@ $(BUILD_DIR)/p.%.js: $(SRC) $(SRC_DIR)/p.%.post.js
24 27 cat $^ > $@
25 28
26 29 .PHONY: commonjs
27   -commonjs: $(BUILD_DIR)/p.commonjs.js $(BUILD_DIR)/p.commonjs.min.js
  30 +commonjs: $(COMMONJS) $(BUILD_DIR)/p.commonjs.min.js
28 31
29 32 .PHONY: amd
30 33 amd: $(BUILD_DIR)/p.amd.js $(BUILD_DIR)/p.amd.min.js

0 comments on commit 89da182

Please sign in to comment.
Something went wrong with that request. Please try again.