2017-08-14 00:20:19 +02:00
|
|
|
coffee_files = main.coffee
|
|
|
|
|
2017-08-15 02:56:04 +02:00
|
|
|
jsfiles = xterm.js
|
2017-08-14 00:20:19 +02:00
|
|
|
|
2017-08-15 02:56:04 +02:00
|
|
|
cssfiles = xterm.css main.css
|
2017-08-14 00:20:19 +02:00
|
|
|
|
|
|
|
copyfiles = scheme.html package.json
|
|
|
|
|
|
|
|
|
|
|
|
BLUE=\033[1;34m
|
|
|
|
NC=\033[0m
|
|
|
|
|
|
|
|
main: title clean js css copy
|
|
|
|
|
|
|
|
title:
|
2017-08-15 02:56:04 +02:00
|
|
|
@echo "$(BLUE)======= Package wTerm =======$(NC)"
|
|
|
|
- rm -rf build/*
|
2017-08-14 00:20:19 +02:00
|
|
|
|
|
|
|
coffee:
|
|
|
|
- mkdir build
|
|
|
|
for f in $(coffee_files); do (coffee -cs < $$f >build/"$$f.js");done
|
|
|
|
for f in build/*.coffee.js; do (cat "$${f}"; echo) >> build/main.js; done
|
|
|
|
- rm build/*.coffee.js
|
|
|
|
|
|
|
|
js: coffee
|
|
|
|
for f in $(jsfiles); do (cat "$${f}"; echo) >> build/main.js; done
|
|
|
|
|
|
|
|
css:
|
|
|
|
for f in $(cssfiles); do (cat "$${f}"; echo) >> build/main.css; done
|
|
|
|
|
|
|
|
copy:
|
|
|
|
cp -rf $(copyfiles) build/
|
|
|
|
clean:
|
|
|
|
- rm -rf build/*
|