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

21 lines
822 B
Makefile

### SnoozeSquad Makefile ###
# The target output file
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)
@echo [SnoozeSquad/Build] $$(ls -lh SnoozeSquad.js | cut -d ' ' -f 5) --\> $$(ls -lh SnoozeSquad.min.js | cut -d ' ' -f 5)
@echo '*** Build Complete ***'