/[volute]/trunk/projects/vocabularies/Makefile.in
ViewVC logotype

Diff of /trunk/projects/vocabularies/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 101 by norman.x.gray, Fri Feb 22 19:24:36 2008 UTC revision 102 by norman.x.gray, Wed Mar 19 10:09:38 2008 UTC
# Line 2  Line 2 
2  # @configure_input@  # @configure_input@
3    
4  RELEASE=@PACKAGE_VERSION@  RELEASE=@PACKAGE_VERSION@
5    RELEASEDATEN=@RELEASEDATEN@
6    
7  # Base URI for the vocabularies -- no trailing slash  # Base URI for the vocabularies -- no trailing slash
8  BASEURI=@BASEURI@  BASEURI=@BASEURI@
# Line 30  Line 31 
31    
32  # This is the main release product, containing the vocabularies  # This is the main release product, containing the vocabularies
33  # and the associated document  # and the associated document
34  vocabularies-$(RELEASE).tar: src/$(DISTNAME).tar doc/vocabularies.xhtml  vocabularies-$(RELEASE).tar: src/$(DISTNAME).tar.gz doc/vocabularies.xhtml
35          rm -Rf ${@:.tar=}          D=${@:.tar=}; DN=$$D/vocabularies-`echo $(RELEASEDATEN)|sed s/-//g`; TOP=`pwd`; \
36          mkdir ${@:.tar=}            rm -Rf $$D; \
37          cp doc/vocabularies.xhtml ${@:.tar=}            mkdir $$D; mkdir $$DN; \
38          cd ${@:.tar=} && $(TAR) xf ../src/$(DISTNAME).tar            cp doc/vocabularies.xhtml $$DN.html; \
39              cp src/$(DISTNAME).tar.gz $$DN; \
40              cd $$DN && $(TAR) xzf $$TOP/src/$(DISTNAME).tar.gz
41          rm -f $@          rm -f $@
42          $(TAR) cf $@ ${@:.tar=}          $(TAR) cf $@ ${@:.tar=}
43          rm -Rf ${@:.tar=}          rm -Rf ${@:.tar=}
44    
45  src/$(DISTNAME).tar: Makefile  src/$(DISTNAME).tar.gz: Makefile
46          cd src; make          cd src; make $(DISTNAME).tar.gz
47    
48  doc/vocabularies.xhtml: Makefile  doc/vocabularies.xhtml: Makefile
49          cd doc; make          cd doc; make
# Line 58  Line 61 
61  # This should be regarded as temporary: replace it with the patterns based  # This should be regarded as temporary: replace it with the patterns based
62  # on Apache mod_rewrite (once Norman has checked with Bruno that that's  # on Apache mod_rewrite (once Norman has checked with Bruno that that's
63  # supported on the ivoa.net Apache).  # supported on the ivoa.net Apache).
64    #
65  ivoa-document-tree-$(RELEASE).tar: vocabularies-$(RELEASE).tar.gz  ivoa-document-tree-$(RELEASE).tar: vocabularies-$(RELEASE).tar.gz
66          rm -Rf ${@:.tar=}          rm -Rf ${@:.tar=}
67          mkdir ${@:.tar=}          mkdir ${@:.tar=}
68          D=`basename $(BASEURI)`; \          TOP=`pwd`; DD=vocabularies-`echo $(RELEASEDATEN)|sed s/-//g`; \
69            cd ${@:.tar=}; \            cd ${@:.tar=}; \
70            $(TAR) xzf ../vocabularies-$(RELEASE).tar.gz; \            $(TAR) xzf $$TOP/vocabularies-$(RELEASE).tar.gz; \
71            mv vocabularies-$(RELEASE) $$D; \            mv vocabularies-$(RELEASE)/* .; rmdir vocabularies-$(RELEASE); \
72            cp ../vocabularies-$(RELEASE).tar.gz $$D; \            echo "This tarball should be unpacked so that the file @BASEURI@.html is served successfully" >000-Bruno-note; \
73            cd $$D; \            cd $$DD; \
           mv vocabularies.xhtml index.xhtml; \  
74            for f in `ls *.ttl | sed 's/\.ttl$$//'`; do \            for f in `ls *.ttl | sed 's/\.ttl$$//'`; do \
75              sed "s/FOO/$$f/" ../../ivoa-document-tree-template.map >$$f.map; \              sed "s/FOO/$$f/" $$TOP/ivoa-document-tree-template.map >$$f.map; \
76            done; \            done; \
77            echo "This tarball should be unpacked so that the file @BASEURI@/index.xhtml is served successfully" >000-Bruno-note; \            cp $$TOP/ivoa-document-tree.htaccess .htaccess
           cp ../../ivoa-document-tree.htaccess .htaccess  
78          rm -f $@          rm -f $@
79          $(TAR) cf $@ ${@:.tar=}          $(TAR) cf $@ ${@:.tar=}
80          rm -Rf ${@:.tar=}          rm -Rf ${@:.tar=}

Legend:
Removed from v.101  
changed lines
  Added in v.102

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26