-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSunOS.mak
41 lines (29 loc) · 891 Bytes
/
SunOS.mak
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
# Common Definitions #########################################################
# Pick a default install location, if user doesn't have one defiend
ifeq ($(PREFIX),)
PREFIX=$(HOME)
endif
ETC=$(PREFIX)/etc
DOC=$(PREFIX)/doc
BIN=$(PREFIX)/bin
SRC=$(PREFIX)/src
LIB=$(PREFIX)/lib
ifeq ($(PYVER),)
PYVER=$(shell python -c "import sys; print '.'.join( sys.version.split()[0].split('.')[:2] )")
endif
PYLIB=$(LIB)/python$(PYVER)
INC=$(PREFIX)/include
SHARE=$(PREFIX)/share
DATE=$(shell date "+%Y-%m-%d")
ARCH=$(shell uname -s).$(shell uname -m)
BUILD=build.$(ARCH)
##############################################################################
# Explicit Rules
build:
python$(PYVER) setup.py build
install:
python$(PYVER) setup.py install --prefix=$(PREFIX) --install-purelib=$(PYLIB) --install-platlib=$(PYLIB)
clean:
rm -r -f build
test:
echo "Unit tests have not been defined"