-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
51 lines (40 loc) · 1.5 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
# Just pushes commands down to setup.py
ifeq ($(PREFIX),)
PREFIX:=/var/www/dasflex
endif
ifeq ($(INST_ETC),)
INST_ETC:=$(PREFIX)/etc
endif
# Default to no sub-dir for architecture dependent files
ifeq ($(N_ARCH),)
N_ARCH:=/
endif
ifeq ($(PYVER),)
PYVER=$(shell python3 -c "import sys; print('.'.join( sys.version.split()[0].split('.')[:2] ))")
endif
export PREFIX
export INST_ETC
export N_ARCH
export PYVER
build:
python${PYVER} setup.py build
install_noex:
python${PYVER} setup.py install --prefix=${PREFIX} \
--install-lib=${PREFIX}/lib/python${PYVER} \
--install-scripts=${PREFIX}/bin/${N_ARCH} --no-examples
@echo "-------------------------------------------------------------------"
@echo "Scripts installed, but you probably need to symlink dasflex_cgimain"
@echo "and dasflex_logmain from your designated CGI bin directory."
@echo "-------------------------------------------------------------------"
install:
python${PYVER} setup.py install --prefix=${PREFIX} \
--install-lib=${PREFIX}/lib/python${PYVER} \
--install-scripts=${PREFIX}/bin/${N_ARCH}
@echo "-------------------------------------------------------------------"
@echo "Scripts installed, but you probably need to symlink dasflex_cgimain"
@echo "and dasflex_logmain from your designated CGI bin directory."
@echo "-------------------------------------------------------------------"
#python${PYVER} setup.py install --prefix=${PREFIX} \
# --install-lib=${PREFIX}/lib/python${PYVER} --no-examples
distclean:
rm -r build