mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
24 lines
676 B
Makefile
24 lines
676 B
Makefile
copyfiles = router.lua controllers logs views models
|
|
coffees = assets/coffee/bootstrap.coffee \
|
|
assets/coffee/BaseObject.coffee \
|
|
assets/coffee/APIManager.coffee \
|
|
assets/coffee/MarkOn.coffee \
|
|
assets/coffee/WebVNC.coffee
|
|
|
|
SED=sed
|
|
UNAME_S := $(shell uname -s)
|
|
ifeq ($(UNAME_S),Darwin)
|
|
SED=gsed
|
|
endif
|
|
|
|
main: js
|
|
- mkdir -p $(BUILDDIR)/assets
|
|
cp -rvf $(copyfiles) $(BUILDDIR)
|
|
cp -rv assets/css assets/scripts $(BUILDDIR)/assets
|
|
- cd $(BUILDDIR) && ln -s ../grs ./rst
|
|
|
|
js:
|
|
- rm assets/scripts/main.*
|
|
for f in $(coffees); do (cat "$${f}"; echo) >> assets/scripts/main.coffee; done
|
|
coffee --compile assets/scripts/main.coffee
|
|
-rm assets/scripts/main.coffee
|