-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 1.08 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
#TAR=tar
TAR=gtar
CHROOT=/home/www
SCRIPTS=/wsgi-scripts
WEBTARGET=${CHROOT}${SCRIPTS}
clean: accounts
-@rm *.tar
-@rm -r accounts_web accounts_backend
-@find accounts -name \*.pyc -exec rm {} \;
-@rm accounts/db.sqlite
wsgi: account_launcher.wsgi.base
sed s@HTDOCS@${SCRIPTS}@ account_launcher.wsgi.base > account_launcher.wsgi
web: wsgi clean accounts
cp -r accounts accounts_web
rm -r accounts_web/scripts/{auth_modules,create.py,process-changes.py,remind.py,test_modules}
rm -r accounts_web/tests
#cp account_launcher.wsgi accounts_web
$(TAR) cvf accounts_web.tar accounts_web account_launcher.wsgi
rm -r accounts_web
install_web: web
$(TAR) xvf accounts_web.tar -C ${WEBTARGET}
mv ${WEBTARGET}/accounts_web ${WEBTARGET}/accounts
backend: clean accounts
cp -r accounts accounts_backend
rm -r accounts_backend/{pages,static,templates,tests,web}
cp -r standalone_scripts accounts_backend
$(TAR) cvf accounts_backend.tar accounts_backend
rm -r accounts_backend
database:
python accounts -r
python accounts -s import_passwd
python accounts -s import_old_db
all: web backend