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

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

Fixed license info

Line 
1#
2# NERC Data Grid 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        @-for dir in ${EGG_DIRS}; do \
21                cd $$dir; \
22                ${PYTHON} setup.py bdist_egg; \
23                cd ..; \
24        done;
25
26clean:
27        @-for dir in ${EGG_DIRS}; do \
28                cd $$dir; \
29                rm -f dist/*.egg; \
30                rm -rf *.egg-info; \
31                rm -rf build; \
32                cd ..; \
33        done;
34
35replace: clean eggs
36
37# Convenient alias
38force: replace
39
40NDG_EGG_DIST_USER=
41NDG_EGG_DIST_HOST=
42NDG_EGG_DIST_DIR=
43
44install_eggs: eggs
45        scp ndg-security-install.py ndg.*/dist/*.egg \
46        ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR}
47
48# Make ZSI stubs from Session Manager WSDL
49SM_ZSI_STUB_DIRS=./ndg.security.server/ndg/security/server/zsi/sessionmanager \
50                                 ./ndg.security.common/ndg/security/common/zsi/sessionmanager
51
52sm_zsi_wsdl_stubs:
53        @-for dir in ${SM_ZSI_STUB_DIRS}; do \
54                cd $$dir && make && cd ../../../../../..; \
55        done;
56
57# Make ZSI stubs from Attribute Authority WSDL
58AA_ZSI_STUB_DIRS=./ndg.security.server/ndg/security/server/zsi/attributeauthority \
59                                 ./ndg.security.common/ndg/security/common/zsi/attributeauthority
60                                 
61aa_zsi_wsdl_stubs:
62        @-for dir in ${AA_ZSI_STUB_DIRS}; do \
63                cd $$dir && make && cd ../../../../../..; \
64        done;
65
66# Make all ZSI stubs for NDG security
67zsi_wsdl_stubs: sm_zsi_wsdl_stubs aa_zsi_wsdl_stubs
68
69
70# Generate HTML from embedded epydoc text in source code.
71EPYDOC=epydoc
72EPYDOC_OUTDIR=../documentation/epydoc
73EPYDOC_NAME='NDG Security'
74EPYDOC_LOGFILE=epydoc.log
75EPYDOC_FRAMES_OPT=--no-frames
76epydoc:
77        ${EPYDOC} ./ndg.security.*/ndg -o ${EPYDOC_OUTDIR} \
78        --name ${EPYDOC_NAME} ${EPYDOC_FRAMES_OPT} --include-log --graph=all -v \
79        > ${EPYDOC_LOGFILE}
80
81# Install epydoc on web server - set environment variables in a setup script
82# or one the command line and use the -e option for make
83NDG_EPYDOC_USER=
84NDG_EPYDOC_HOST=
85NDG_EPYDOC_DIR=
86install_epydoc:
87        scp -r ${EPYDOC_OUTDIR} \
88        ${NDG_EPYDOC_USER}@${NDG_EPYDOC_HOST}:${NDG_EPYDOC_DIR}
89       
90# Generate SysV init scripts for Twisted based services
91init_scripts:
92        cd ./ndg.security.server/ndg/security/server/share && make generateScripts
93
Note: See TracBrowser for help on using the repository browser.