-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 783 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 783 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
31
prefix := /usr/local/camm
all:
@echo "Run make install to install the CAMM software"
check:
# Check dependencies
@python -c "import stomp" || echo "\nERROR: stomp.py is not installed: http://code.google.com/p/stomppy\n"
@python -c "import sns_utilities" || echo "\nERROR sns_utilities is not installed"
# Done checking dependencies
install: check camm
amq:
# Install AMQ python package
python setup.py clean
python setup.py install
camm: amq
# Make sure the install directories exist
test -d $(prefix) || mkdir -m 0755 -p $(prefix)
# Install application code
cp -R * $(prefix)
@echo /usr/local/camm > `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`/camm.pth
.PHONY: check
.PHONY: install
.PHONY: amq
.PHONY: camm