-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (49 loc) · 1.75 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
52
53
54
55
56
57
58
59
60
# Makefile
#*************************************************************************
# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2009-2010 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# This file is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
########### SVN repository information ###################
# $Date: 2010-06-03 16:04:15 -0500 (Thu, 03 Jun 2010) $
# $Author: jemian $
# $Revision: 184 $
# $URL: https://subversion.xor.aps.anl.gov/bcdaext/wxmtxy/trunk/Makefile $
# $Id: Makefile 184 2010-06-03 21:04:15Z jemian $
########### SVN repository information ###################
HOST := $(shell uname -n)
PYTHON := $(shell which python)
PYDOC := $(shell which pydoc)
ifeq ("$(HOST)", "como")
# como runs cygwin
# the python supplied with Cygwin does not have wx
# wx is a package installed in Enthought Python
PYTHON := /cygdrive/c/Python26/python.exe
endif
ifeq ("$(HOST)", "usaxscontrol.xor.aps.anl.gov")
# usaxscontrol.xor.aps.anl.gov needs APSshare version
PYTHON := /APSshare/bin/python
PYDOC := /APSshare/bin/pydoc
endif
ifeq ("$(HOST)", "gov.aps.anl.gov")
# gov.aps.anl.gov needs APSshare version
PYTHON := /APSshare/bin/python
PYDOC := /APSshare/bin/pydoc
endif
all :: sdist
rebuild :: clean all
clean ::
/bin/rm -rf build/ dist/ MANIFEST *.pyc
sdist ::
$(PYTHON) ./setup.py sdist
run ::
$(PYTHON) ./wxmtxy.py
pydoc ::
$(PYDOC) -w ./
/bin/mv -f wxmtxy*.html pydoc/
/bin/mv -f pvConnect.html pydoc/
/bin/mv -f setup.html pydoc/
/bin/mv -f menuLauncher.html pydoc/