-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 831 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 831 Bytes
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
# Installs web2py and makes symlinks.
CLIENT_ID = # your client id from azure
export CLIENT_ID
CLIENT_SECRET = # your secret from azure
export CLIENT_SECRET
ROOT_DIR = $(abspath ./)
export ROOT_DIR
TARGET_WEB2PY_DIR = $(abspath web2py)
export TARGET_WEB2PY_DIR
.PHONY: all install uninstall run
all:
$(error Please specify target. Valid targets are: install, uninstall, run)
# Run a dev server without GUI, where the admin password is '123'.
run:
python $(TARGET_WEB2PY_DIR)/web2py.py --nogui -p 8000 -a 123
uninstall:
rm -fr $(TARGET_WEB2PY_DIR)
install:
$(MAKE) install -C site-packages
@echo 'Make app symlinks...'
ln -s $(abspath applications/linkedin_compare) \
$(abspath $(TARGET_WEB2PY_DIR)/applications/linkedin_compare)
ln -s $(abspath requirements.txt) \
$(abspath $(TARGET_WEB2PY_DIR)/requirements.txt)