1 | |
---|
2 | # Makefile |
---|
3 | #************************************************************************* |
---|
4 | # Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne |
---|
5 | # National Laboratory. |
---|
6 | # Copyright (c) 2009-2010 The Regents of the University of California, as |
---|
7 | # Operator of Los Alamos National Laboratory. |
---|
8 | # This file is distributed subject to a Software License Agreement found |
---|
9 | # in the file LICENSE that is included with this distribution. |
---|
10 | #************************************************************************* |
---|
11 | |
---|
12 | ########### SVN repository information ################### |
---|
13 | # $Date: 2011-09-09 17:12:01 +0000 (Fri, 09 Sep 2011) $ |
---|
14 | # $Author: jemian $ |
---|
15 | # $Revision: 631 $ |
---|
16 | # $URL: moxy/trunk/Makefile $ |
---|
17 | # $Id: Makefile 631 2011-09-09 17:12:01Z jemian $ |
---|
18 | ########### SVN repository information ################### |
---|
19 | |
---|
20 | |
---|
21 | HOST := $(shell uname -n) |
---|
22 | PYTHON := $(shell which python) |
---|
23 | PYDOC := $(shell which pydoc) |
---|
24 | ifeq ("$(HOST)", "como") |
---|
25 | # como runs cygwin |
---|
26 | # the python supplied with Cygwin does not have wx |
---|
27 | # wx is a package installed in Enthought Python |
---|
28 | PYTHON := /cygdrive/c/Python27/python.exe |
---|
29 | endif |
---|
30 | ifeq ("$(HOST)", "usaxscontrol.xor.aps.anl.gov") |
---|
31 | # usaxscontrol.xor.aps.anl.gov needs APSshare version |
---|
32 | PYTHON := /APSshare/bin/python |
---|
33 | PYDOC := /APSshare/bin/pydoc |
---|
34 | endif |
---|
35 | ifeq ("$(HOST)", "gov.aps.anl.gov") |
---|
36 | # gov.aps.anl.gov needs APSshare version |
---|
37 | PYTHON := /APSshare/bin/python |
---|
38 | PYDOC := /APSshare/bin/pydoc |
---|
39 | endif |
---|
40 | |
---|
41 | |
---|
42 | all :: sdist |
---|
43 | |
---|
44 | rebuild :: clean all |
---|
45 | |
---|
46 | clean :: |
---|
47 | /bin/rm -rf build/ dist/ MANIFEST *.pyc |
---|
48 | |
---|
49 | sdist :: |
---|
50 | $(PYTHON) ./setup.py sdist |
---|
51 | |
---|
52 | run :: |
---|
53 | $(PYTHON) ./moxy.py |
---|
54 | |
---|
55 | pydoc :: |
---|
56 | $(PYDOC) -w ./ |
---|
57 | /bin/mv -f moxy*.html pydoc/ |
---|
58 | /bin/mv -f pvConnect.html pydoc/ |
---|
59 | /bin/mv -f setup.html pydoc/ |
---|
60 | /bin/mv -f menuLauncher.html pydoc/ |
---|