-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
88 lines (68 loc) · 2.65 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
RM = rm -rf
I18N = ~/Dev/depage-cms/www/framework/i18n.sh
JSMIN = ~/Dev/depage-cms/www/framework/JsMin/minimize
PHP = $(shell which php)
SASSDIR = www/framework/Cms/sass/
CSSDIR = www/framework/Cms/css/
JSDIR = www/framework/Cms/js/
WWWPATH = /var/www/depage-cms/
.PHONY: all min minjs locale locale-php sass sassc push pushdev pushlive doc clean
all: locale min
min: sassc
locale:
cd www/framework/ ; $(I18N)
php www/framework/Cms/js/locale.php
reload-php
tags: $(wildcard www/framework/**/*.php)
phpctags -R -C tags-cache
doc: Docs/html/de/index.html Docs/html/en/index.html
Docs/html/en/index.html: Docs/en/Doxyfile Docs/en/*.md Docs/en/DoxygenLayout.xml
cd Docs ; git clone https://github.com/depage/depage-docu.git depage-docu || true
mkdir -p Docs/html/en/
doxygen Docs/en/Doxyfile
cp -r Docs/depage-docu/www/lib Docs/html/en/
cp -r Docs/de/images Docs/html/en/
Docs/html/de/index.html: Docs/de/Doxyfile Docs/de/*.md Docs/de/DoxygenLayout.xml
cd Docs ; git clone https://github.com/depage/depage-docu.git depage-docu || true
mkdir -p Docs/html/de/
doxygen Docs/de/Doxyfile
cp -r Docs/depage-docu/www/lib Docs/html/de/
cp -r Docs/de/images Docs/html/de/
clean:
$(RM) Docs/depage-docu/ Docs/html/
$(CSSDIR)%.css: $(SASSDIR)%.scss $(SASSDIR)modules/*.scss www/framework/HtmlForm/lib/sass/*.scss
sassc --style compressed $< $@
sassc: $(patsubst %.scss,$(CSSDIR)%.css, $(notdir $(wildcard $(SASSDIR)*.scss)))
run-taskrunner:
cd $(WWWPATH) ; sudo -u _www $(PHP) -f framework/Tasks/TaskRunner.php -- --dp-path $(WWWPATH) --conf-url https://localhost/depage-cms/ --watch
run-socketserver:
cd $(WWWPATH) ; sudo -u _www $(PHP) -f framework/WebSocket/Server.php -- --dp-path $(WWWPATH) --conf-url https://localhost/depage-cms/
run-scheduler:
cd $(WWWPATH) ; sudo -u _www $(PHP) -f framework/Cms/Scheduler.php -- --dp-path $(WWWPATH) --conf-url https://localhost/depage-cms/
push: pushlive
pushlive: all
rsync \
-k -r -v -c \
-e "ssh -p 22" \
--delete \
--exclude '.DS_Store' \
--exclude '.git' \
--exclude 'cache/' \
www/framework www/conf www/index.php [email protected]:/home/depagecms/www/net.depage.edit/
pushdev: all
rsync \
-k -r -v -c \
-e "ssh -p 22" \
--delete \
--exclude '.DS_Store' \
--exclude '.git' \
--exclude 'cache/' \
www/framework www/conf www/index.php [email protected]:/home/depagecms/www/net.depage.editbeta/
pushminime: all
rsync \
-k -r -v -c \
--delete \
--exclude '.DS_Store' \
--exclude '.git' \
--exclude 'cache/' \
www/framework www/conf www/index.php jonas@minime:/Tank/Test/www-depage/www/depagecms/net.depage.edit/