source: ceda_http_fileserver/trunk/ceda_http_fileserver/Makefile @ 7675

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/ceda_http_fileserver/trunk/ceda_http_fileserver/Makefile@7675
Revision 7675, 1.7 KB checked in by pjkersha, 9 years ago (diff)

Complete - task 9: Data Browser Replacement

  • preparing new release
  • Property svn:keywords set to Id
Line 
1#
2# CEDA HTTP File Server Makefile
3#
4# @author P J Kershaw 21/06/10
5#
6# Make all eggs
7#
8# @copyright: (C) 2010 STFC
9#
10# @license: BSD - LICENSE file
11#
12# $Id:$
13EGG_DIRS=.
14
15# Override on the command line for alternative path
16PYTHON=python
17
18Eggs:
19        @echo "Running setup bdist_egg in these directories ${EGG_DIRS} ..."
20        @-for dir in ${EGG_DIRS}; do \
21                cd $$dir; \
22                ${PYTHON} setup.py bdist_egg; \
23                cd ..; \
24        done;
25
26develop:
27        @-for dir in ${EGG_DIRS}; do \
28                cd $$dir; \
29                ${PYTHON} setup.py develop; \
30                cd ..; \
31        done;
32
33clean:
34        @-for dir in ${EGG_DIRS}; do \
35                cd $$dir; \
36                rm -f dist/*.egg; \
37                rm -rf *.egg-info; \
38                rm -rf build; \
39                cd ..; \
40        done;
41
42replace: clean eggs
43
44# Convenient alias
45force: replace
46
47#NDG_EGG_DIST_USER=
48#NDG_EGG_DIST_HOST=
49#NDG_EGG_DIST_DIR=
50
51install_eggs: Eggs
52        @echo "Installing eggs to ${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR} ..."
53        scp dist/*.egg ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR}
54        ssh ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST} "chown ${NDG_EGG_DIST_USER}:cedadev ${NDG_EGG_DIST_DIR}/ceda_http_file_server*.egg"
55
56
57# Generate HTML from embedded epydoc text in source code.
58EPYDOC=epydoc
59EPYDOC_OUTDIR=../documentation/epydoc
60EPYDOC_NAME='CEDA HTTP File Server'
61EPYDOC_LOGFILE=epydoc.log
62EPYDOC_FRAMES_OPT=--no-frames
63epydoc:
64        ${EPYDOC} ./ceda -o ${EPYDOC_OUTDIR} \
65        --name ${EPYDOC_NAME} ${EPYDOC_FRAMES_OPT} --include-log --graph=all -v \
66        --exclude=nosetests.* > ${EPYDOC_LOGFILE}
67
68# Install epydoc on web server - set environment variables in a setup script
69# or one the command line and use the -e option for make
70NDG_EPYDOC_USER=
71NDG_EPYDOC_HOST=
72NDG_EPYDOC_DIR=
73install_epydoc:
74        scp -r ${EPYDOC_OUTDIR} \
75        ${NDG_EPYDOC_USER}@${NDG_EPYDOC_HOST}:${NDG_EPYDOC_DIR}
76
Note: See TracBrowser for help on using the repository browser.