source: wxmtxy/trunk/Makefile @ 631

Last change on this file since 631 was 631, checked in by jemian, 12 years ago

begin refactoring into release structure and rebranding with new product name: moxy

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author HeadURL Id
File size: 1.6 KB
Line 
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: wxmtxy/trunk/Makefile $
17# $Id: Makefile 631 2011-09-09 17:12:01Z jemian $
18########### SVN repository information ###################
19
20
21HOST   := $(shell uname -n)
22PYTHON := $(shell which python)
23PYDOC := $(shell which pydoc)
24ifeq ("$(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
29endif
30ifeq ("$(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
34endif
35ifeq ("$(HOST)", "gov.aps.anl.gov")
36  # gov.aps.anl.gov needs APSshare version
37  PYTHON := /APSshare/bin/python
38  PYDOC := /APSshare/bin/pydoc
39endif
40
41
42all :: sdist
43
44rebuild :: clean all
45
46clean ::
47        /bin/rm -rf build/ dist/ MANIFEST *.pyc
48
49sdist ::
50        $(PYTHON) ./setup.py sdist
51
52run ::
53        $(PYTHON) ./moxy.py
54
55pydoc ::
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/
Note: See TracBrowser for help on using the repository browser.