source: TI12-security/tags/ndg-security-1.5.5/Makefile @ 6640

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/tags/ndg-security-1.5.5/Makefile@7077
Revision 6640, 2.6 KB checked in by pjkersha, 10 years ago (diff)

Fix to install_eggs Makefile target.

Line 
1#
2# NERC DataGrid Project
3#
4# @author P J Kershaw 15/03/07
5#
6# Make all eggs
7#
8# @copyright: (C) 2007 STFC
9#
10# @license: BSD - LICENSE file
11#
12# $Id:$
13EGG_DIRS=ndg_security_common ndg_security_client ndg_security_server \
14ndg_security_test ndg_security
15
16# Override on the command line for alternative path
17PYTHON=python
18
19Eggs:
20        @echo "Running setup bdist_egg in these directories ${EGG_DIRS} ..."
21        @-for dir in ${EGG_DIRS}; do \
22                cd $$dir; \
23                ${PYTHON} setup.py bdist_egg; \
24                cd ..; \
25        done;
26
27develop:
28        @-for dir in ${EGG_DIRS}; do \
29                cd $$dir; \
30                ${PYTHON} setup.py develop; \
31                cd ..; \
32        done;
33
34clean:
35        @-for dir in ${EGG_DIRS}; do \
36                cd $$dir; \
37                rm -f dist/*.egg; \
38                rm -rf *.egg-info; \
39                rm -rf build; \
40                cd ..; \
41        done;
42
43replace: clean eggs
44
45# Convenient alias
46force: replace
47
48#NDG_EGG_DIST_USER=
49#NDG_EGG_DIST_HOST=
50#NDG_EGG_DIST_DIR=
51
52install_eggs: Eggs
53        @echo "Installing eggs to ${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR} ..."
54        scp ndg_security*/dist/*.egg ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR}
55        ssh ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST} "chown ${NDG_EGG_DIST_USER}:cedadev ${NDG_EGG_DIST_DIR}/ndg_security*.egg"
56
57# Make ZSI stubs from Session Manager WSDL
58SM_ZSI_STUB_DIRS=./ndg_security_server/ndg/security/server/zsi/sessionmanager \
59                                 ./ndg_security_common/ndg/security/common/zsi/sessionmanager
60
61sm_zsi_wsdl_stubs:
62        @-for dir in ${SM_ZSI_STUB_DIRS}; do \
63                cd $$dir && make && cd ../../../../../..; \
64        done;
65
66# Make ZSI stubs from Attribute Authority WSDL
67AA_ZSI_STUB_DIRS=./ndg_security_server/ndg/security/server/zsi/attributeauthority \
68                                 ./ndg_security_common/ndg/security/common/zsi/attributeauthority
69                                 
70aa_zsi_wsdl_stubs:
71        @-for dir in ${AA_ZSI_STUB_DIRS}; do \
72                cd $$dir && make && cd ../../../../../..; \
73        done;
74
75# Make all ZSI stubs for NDG security
76zsi_wsdl_stubs: sm_zsi_wsdl_stubs aa_zsi_wsdl_stubs
77
78
79# Generate HTML from embedded epydoc text in source code.
80EPYDOC=epydoc
81EPYDOC_OUTDIR=../documentation/epydoc
82EPYDOC_NAME='NDG Security'
83EPYDOC_LOGFILE=epydoc.log
84EPYDOC_FRAMES_OPT=--no-frames
85epydoc:
86        ${EPYDOC} ./ndg_security_*/ndg -o ${EPYDOC_OUTDIR} \
87        --name ${EPYDOC_NAME} ${EPYDOC_FRAMES_OPT} --include-log --graph=all -v \
88        --exclude=nosetests.* > ${EPYDOC_LOGFILE}
89
90# Install epydoc on web server - set environment variables in a setup script
91# or one the command line and use the -e option for make
92NDG_EPYDOC_USER=
93NDG_EPYDOC_HOST=
94NDG_EPYDOC_DIR=
95install_epydoc:
96        scp -r ${EPYDOC_OUTDIR} \
97        ${NDG_EPYDOC_USER}@${NDG_EPYDOC_HOST}:${NDG_EPYDOC_DIR}
98       
99# Generate SysV init scripts for Twisted based services
100init_scripts:
101        cd ./ndg_security_server/ndg/security/server/share && make generateScripts
102
Note: See TracBrowser for help on using the repository browser.