source: TI12-security/trunk/python/Makefile @ 5727

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Makefile@5907
Revision 5727, 2.3 KB checked in by pjkersha, 11 years ago (diff)

Fix for updated top-level egg dir names.

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 ndg_security_saml
15
16# Override on the command line for alternative path
17PYTHON=python
18
19eggs:
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
47NDG_EGG_DIST_USER=
48NDG_EGG_DIST_HOST=
49NDG_EGG_DIST_DIR=
50
51install_eggs: eggs
52        scp ndg_*/dist/*.egg ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR}
53
54# Make ZSI stubs from Session Manager WSDL
55SM_ZSI_STUB_DIRS=./ndg_security_server/ndg/security/server/zsi/sessionmanager \
56                                 ./ndg_security_common/ndg/security/common/zsi/sessionmanager
57
58sm_zsi_wsdl_stubs:
59        @-for dir in ${SM_ZSI_STUB_DIRS}; do \
60                cd $$dir && make && cd ../../../../../..; \
61        done;
62
63# Make ZSI stubs from Attribute Authority WSDL
64AA_ZSI_STUB_DIRS=./ndg_security_server/ndg/security/server/zsi/attributeauthority \
65                                 ./ndg_security_common/ndg/security/common/zsi/attributeauthority
66                                 
67aa_zsi_wsdl_stubs:
68        @-for dir in ${AA_ZSI_STUB_DIRS}; do \
69                cd $$dir && make && cd ../../../../../..; \
70        done;
71
72# Make all ZSI stubs for NDG security
73zsi_wsdl_stubs: sm_zsi_wsdl_stubs aa_zsi_wsdl_stubs
74
75
76# Generate HTML from embedded epydoc text in source code.
77EPYDOC=epydoc
78EPYDOC_OUTDIR=../documentation/epydoc
79EPYDOC_NAME='NDG Security'
80EPYDOC_LOGFILE=epydoc.log
81EPYDOC_FRAMES_OPT=--no-frames
82epydoc:
83        ${EPYDOC} ./ndg_security_*/ndg -o ${EPYDOC_OUTDIR} \
84        --name ${EPYDOC_NAME} ${EPYDOC_FRAMES_OPT} --include-log --graph=all -v \
85        > ${EPYDOC_LOGFILE}
86
87# Install epydoc on web server - set environment variables in a setup script
88# or one the command line and use the -e option for make
89NDG_EPYDOC_USER=
90NDG_EPYDOC_HOST=
91NDG_EPYDOC_DIR=
92install_epydoc:
93        scp -r ${EPYDOC_OUTDIR} \
94        ${NDG_EPYDOC_USER}@${NDG_EPYDOC_HOST}:${NDG_EPYDOC_DIR}
95       
96# Generate SysV init scripts for Twisted based services
97init_scripts:
98        cd ./ndg_security_server/ndg/security/server/share && make generateScripts
99
Note: See TracBrowser for help on using the repository browser.