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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (show annotations)
Wed Mar 19 10:09:38 2008 UTC (12 years, 8 months ago) by norman.x.gray
File size: 3140 byte(s)
Adjustments to distribution, in consultation with Bruno Rino
1 # Makefile for the IVOA vocabularies SKOS distribution
2 # @configure_input@
3
4 RELEASE=@PACKAGE_VERSION@
5 RELEASEDATEN=@RELEASEDATEN@
6
7 # Base URI for the vocabularies -- no trailing slash
8 BASEURI=@BASEURI@
9
10 # Distribution name -- can be overridden
11 DISTNAME=@DISTNAME@
12
13 TAR=@TAR@
14
15
16 ########################################
17 #
18 # Rules
19
20 %.gz: %
21 rm -f $@
22 gzip --best $<
23
24
25
26 ########################################
27 #
28 # Targets
29
30 all: vocabularies-$(RELEASE).tar.gz
31
32 # This is the main release product, containing the vocabularies
33 # and the associated document
34 vocabularies-$(RELEASE).tar: src/$(DISTNAME).tar.gz doc/vocabularies.xhtml
35 D=${@:.tar=}; DN=$$D/vocabularies-`echo $(RELEASEDATEN)|sed s/-//g`; TOP=`pwd`; \
36 rm -Rf $$D; \
37 mkdir $$D; mkdir $$DN; \
38 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 $@
42 $(TAR) cf $@ ${@:.tar=}
43 rm -Rf ${@:.tar=}
44
45 src/$(DISTNAME).tar.gz: Makefile
46 cd src; make $(DISTNAME).tar.gz
47
48 doc/vocabularies.xhtml: Makefile
49 cd doc; make
50
51 # Prepare a bundle for the IVOA document coordinator.
52 #
53 # The .../vocabularies-$(RELEASE) directory in the IVOA document
54 # tree has to contain the document itself, the tarball above
55 # (for easy retrieval, and because it is documented as being there
56 # in the document), and the various RDF files (so that they are retrievable
57 # at their namespace URLs).
58 #
59 # Include Apache-1.3 configuration files, so that the document coordinator
60 # should be able to simply unpack this tarball in the correct place.
61 # 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
63 # supported on the ivoa.net Apache).
64 #
65 ivoa-document-tree-$(RELEASE).tar: vocabularies-$(RELEASE).tar.gz
66 rm -Rf ${@:.tar=}
67 mkdir ${@:.tar=}
68 TOP=`pwd`; DD=vocabularies-`echo $(RELEASEDATEN)|sed s/-//g`; \
69 cd ${@:.tar=}; \
70 $(TAR) xzf $$TOP/vocabularies-$(RELEASE).tar.gz; \
71 mv vocabularies-$(RELEASE)/* .; rmdir vocabularies-$(RELEASE); \
72 echo "This tarball should be unpacked so that the file @BASEURI@.html is served successfully" >000-Bruno-note; \
73 cd $$DD; \
74 for f in `ls *.ttl | sed 's/\.ttl$$//'`; do \
75 sed "s/FOO/$$f/" $$TOP/ivoa-document-tree-template.map >$$f.map; \
76 done; \
77 cp $$TOP/ivoa-document-tree.htaccess .htaccess
78 rm -f $@
79 $(TAR) cf $@ ${@:.tar=}
80 rm -Rf ${@:.tar=}
81
82 ########################################
83 #
84 # Maintenance targets
85
86 # Note that 'configure' is checked in (to make it possible to configure and
87 # build the project from a checkout, with the minimum amount of fuss).
88 # However we don't here include a dependency of configure on configure.ac:
89 # because Subversion doesn't preserve timestamps, we couldn't guarantee that
90 # this rule wouldn't fire inappropriately, and a stray firing of this
91 # rule vitiates the point of including ./configure in the repository.
92 # Similarly for the Makefile:Makefile.in rule.
93
94 clean:
95 for d in src doc; do (cd $$d; make clean); done
96
97 realclean: clean
98 rm -f Makefile config.log config.status
99 for d in src doc; do (cd $$d; make realclean); done

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