1
0
Fork 0
mirror of https://github.com/sbrl/SnoozeSquad.git synced 2018-01-10 21:33:44 +00:00
SnoozeSquad/Makefile

22 lines
822 B
Makefile
Raw Normal View History

2016-05-28 15:51:39 +00:00
### SnoozeSquad Makefile ###
2016-11-03 17:40:27 +00:00
# The target output file
2016-05-28 15:51:39 +00:00
TargetFile = SnoozeSquad.min.js
# Set the default make goal
.DEFAULT_GOAL = build
# Installs the neccesary dependencies to begin development.
# Currently linux only, but it's so simple you should be able to figure windows
# out easily.
setup:
@echo [SnoozeSquad/Setup] Installing UglifyJS \(Harmony\)
sudo npm install uglify-js-harmony --global
# The default make target. This minifies SnoozeSquad.js to SnoozeSquad.min.js.
build:
cat HeaderComment.js >$(TargetFile)
uglifyjs SnoozeSquad.js --mangle --compress --screw-ie8 >>$(TargetFile)
@echo [SnoozeSquad/Build] Minified Snooze Squad to $(TargetFile)
2016-11-03 17:40:27 +00:00
@echo [SnoozeSquad/Build] $$(ls -lh SnoozeSquad.js | cut -d ' ' -f 5) --\> $$(ls -lh SnoozeSquad.min.js | cut -d ' ' -f 5)
2016-05-28 15:51:39 +00:00
@echo '*** Build Complete ***'