2017-08-11 01:58:46 +02:00
BUILDDIR = build/htdocs
2017-08-14 00:20:19 +02:00
BLUE = \0 33[ 1; 34m
2017-08-11 01:58:46 +02:00
NC = \0 33[ 0m
coffees = src/define.coffee\
2017-08-14 00:20:19 +02:00
src/core/api.coffee\
src/core/processes.coffee\
src/core/handlers/InBrowserHandler.coffee\
2017-08-11 01:58:46 +02:00
src/core/gui/gui.coffee\
src/core/gui/BaseApplication.coffee\
2017-08-15 02:56:04 +02:00
src/core/gui/BaseService.coffee\
2017-08-14 00:20:19 +02:00
src/core/gui/BaseEvent.coffee\
2017-08-11 01:58:46 +02:00
src/antos.coffee
tags = src/core/gui/tags/afx-button.js\
src/core/gui/tags/afx-menu.js\
src/core/gui/tags/afx-sys-panel.js\
src/core/gui/tags/afx-apps-dock.js\
src/core/gui/tags/afx-app-window.js\
src/core/gui/tags/afx-vbox.js\
src/core/gui/tags/afx-hbox.js\
2017-08-14 00:20:19 +02:00
src/core/gui/tags/afx-list-view.js\
src/core/gui/tags/afx-tree-view.js \
src/core/gui/tags/afx-grid-view.js
2017-08-11 01:58:46 +02:00
antos_themes = src/core/gui/themes/antos/font-awesome.css\
src/core/gui/themes/antos/ubuntu-regular.css\
src/core/gui/themes/antos/hermit-light.css\
src/core/gui/themes/antos/antos.css\
src/core/gui/themes/antos/afx-button.css\
src/core/gui/themes/antos/afx-menu.css\
src/core/gui/themes/antos/afx-sys-panel.css\
src/core/gui/themes/antos/afx-dock.css\
2017-08-14 00:20:19 +02:00
src/core/gui/themes/antos/afx-list-view.css\
src/core/gui/themes/antos/afx-tree-view.css\
src/core/gui/themes/antos/afx-grid-view.css\
src/core/gui/themes/antos/afx-app-window.css
2017-08-11 01:58:46 +02:00
2017-08-15 02:56:04 +02:00
packages = NotePad wTerm ActivityMonitor DummyApp
services = PushNotification Spotlight Calendar
2017-08-14 00:20:19 +02:00
2017-08-15 02:56:04 +02:00
main : clean build_coffee build_tag build_theme schemes libs build_services build_packages
2017-08-11 01:58:46 +02:00
- cp src/index.html $( BUILDDIR) /
2017-08-15 02:56:04 +02:00
lite : build_coffee build_tag build_theme schemes build_services build_packages
2017-08-11 01:58:46 +02:00
#%.js: %.coffee
# coffee --compile $<
build_coffee :
2017-08-14 00:20:19 +02:00
@echo " $( BLUE) =======Building coffee files======= $( NC) "
2017-08-11 01:58:46 +02:00
- mkdir $( BUILDDIR) /scripts
- rm $( BUILDDIR) /scripts/antos.js
for f in $( coffees) ; do ( cat " $$ {f} " ; echo ) >> $( BUILDDIR) /scripts/antos.coffee; done
coffee --compile $( BUILDDIR) /scripts/antos.coffee
- rm $( BUILDDIR) /scripts/antos.coffee
libs :
2017-08-14 00:20:19 +02:00
@echo " $( BLUE) =======Copy lib files======= $( NC) "
cp -rf src/libs/* $( BUILDDIR) /scripts/
2017-08-11 01:58:46 +02:00
schemes :
2017-08-14 00:20:19 +02:00
@echo " $( BLUE) =======Copy schemes files======= $( NC) "
2017-08-11 01:58:46 +02:00
- mkdir -p $( BUILDDIR) /resources/schemes
2017-08-14 00:20:19 +02:00
cp src/core/gui/schemes/* $( BUILDDIR) /resources/schemes/
2017-08-11 01:58:46 +02:00
build_tag :
2017-08-14 00:20:19 +02:00
@echo " ======= $( BLUE) Building tag files======= $( NC) "
2017-08-11 01:58:46 +02:00
-mkdir $( BUILDDIR) /resources
-rm $( BUILDDIR) /resources/antos_tags.js
2017-08-14 00:20:19 +02:00
for f in $( tags) ; do ( cat " $$ {f} " ; echo ) >> $( BUILDDIR) /resources/antos_tags.js; done
2017-08-11 01:58:46 +02:00
build_theme : antos_themes_build
antos_themes_build :
2017-08-14 00:20:19 +02:00
@echo " ======= $( BLUE) Building themes name: antos======= $( NC) "
-rm -rf $( BUILDDIR) /resources/themes/antos/*
2017-08-11 01:58:46 +02:00
-mkdir -p $( BUILDDIR) /resources/themes/antos
2017-08-14 00:20:19 +02:00
for f in $( antos_themes) ; do ( cat " $$ {f} " ; echo ) >> $( BUILDDIR) /resources/themes/antos/antos.css; done
2017-08-11 01:58:46 +02:00
-mkdir -p $( BUILDDIR) /resources/themes/antos/fonts
2017-08-14 00:20:19 +02:00
cp -rf src/core/gui/themes/antos/fonts/* $( BUILDDIR) /resources/themes/antos/fonts
cp src/core/gui/themes/antos/wallpaper.jpg $( BUILDDIR) /resources/themes/antos/
2017-08-11 01:58:46 +02:00
2017-08-15 02:56:04 +02:00
build_services :
@echo " ======= $( BLUE) Building services======= $( NC) "
-mkdir -p $( BUILDDIR) /services
-rm -rf $( BUILDDIR) /services/*
for f in $( services) ; do ( coffee -cs < " src/services/ $$ f.coffee " >$( BUILDDIR) /services/" $$ f.js " ) ; done
2017-08-14 00:20:19 +02:00
build_packages :
2017-08-11 01:58:46 +02:00
- mkdir $( BUILDDIR) /packages
2017-08-15 02:56:04 +02:00
- for d in $( packages) ; do ( test -d $( BUILDDIR) /packages/$$ d && rm -rf $( BUILDDIR) /packages/$$ d/* ) ; done
2017-08-14 00:20:19 +02:00
for d in $( packages) ; do ( cd src/packages/$$ d; make) ; done
for d in $( packages) ; do ( test -d $( BUILDDIR) /packages/$$ d || mkdir -p $( BUILDDIR) /packages/$$ d && cp -rf src/packages/$$ d/build/* $( BUILDDIR) /packages/$$ d/) ; done
for d in $( packages) ; do ( test -d src/packages/$$ d/build && rm -r src/packages/$$ d/build ) ; done
2017-08-11 01:58:46 +02:00
clean :
rm -rf $( BUILDDIR) /*