make sure glue2.xsd gets installed
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 2 Nov 2009 13:24:19 +0000 (13:24 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 2 Nov 2009 13:24:19 +0000 (13:24 +0000)
org.glite.lb.ws-interface/Makefile

index 774ef90..8afe4b7 100644 (file)
@@ -27,7 +27,7 @@ STAGETO=interface
 
 WSDL=LB.wsdl LBTypes.wsdl
 
-all compile: ${WSDL} ${doc} glue2.xsd
+all compile: ${WSDL} ${doc} glue2-copy.xsd
 
 check: 
        @echo No unit test required for interface-only module.
@@ -35,8 +35,8 @@ check:
 stage: compile
        $(MAKE) install PREFIX=${stagedir} DOSTAGE=yes
 
-glue2.xsd:
-       wget -O glue2.xsd http://schemas.ogf.org/glue/2008/05/spec_2.0_d42_r01 || cp ${top_srcdir}/src/glue2.xsd .
+glue2-copy.xsd:
+       wget -O $@ http://schemas.ogf.org/glue/2008/05/spec_2.0_d42_r01 || cp ${top_srcdir}/src/glue2.xsd $@
 
 install:
        -mkdir -p ${PREFIX}/${STAGETO}
@@ -46,7 +46,8 @@ install:
        -test -f LB.html && install -m 644 LB.html ${PREFIX}/share/doc/${package}-${version}
 # install the generated stuff instead
 #      cd ${top_srcdir}/interface && install -m 644 ${WSDL} ${PREFIX}/${STAGETO}
-       install -m 644 ${WSDL} glue2.xsd ${PREFIX}/${STAGETO}
+       install -m 644 ${WSDL} ${PREFIX}/${STAGETO}
+       install -m 644 glue2-copy.xsd ${PREFIX}/${STAGETO}/glue2.xsd
        install -m 644 ${top_srcdir}/src/lb4agu.wsdl ${PREFIX}/${STAGETO}
 
 # JP has its own version anyway