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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 424 - (show annotations)
Thu May 8 19:17:33 2008 UTC (12 years, 6 months ago) by norman.x.gray
File size: 3759 byte(s)
Add post-installation self-test

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 # Base URI for the document
10 DOCURI=@DOCURI@
11
12 # Distribution name -- can be overridden
13 DISTNAME=@DISTNAME@
14
15 TAR=@TAR@
16
17
18 ########################################
19 #
20 # Rules
21
22 %.gz: %
23 rm -f $@
24 gzip --best $<
25
26
27
28 ########################################
29 #
30 # Targets
31
32 all: vocabularies-$(RELEASE).tar.gz
33
34 # This is the main release product, containing the vocabularies
35 # and the associated document
36 vocabularies-$(RELEASE).tar: src/$(DISTNAME).tar.gz doc/vocabularies.xhtml
37 D=${@:.tar=}; \
38 rm -Rf $$D; \
39 mkdir $$D; \
40 cp doc/vocabularies.xhtml $$D/vocabularies-`echo $(RELEASEDATEN)|sed s/-//g`.html; \
41 cp src/$(DISTNAME).tar.gz $$D; \
42 ( echo "Document URI:"; echo " $(DOCURI).html"; echo; \
43 echo "Vocabulary base URI:"; echo " $(BASEURI)"; \
44 echo "unpack $(DISTNAME).tar.gz in that directory") > $$D/000-webmaster
45 rm -f $@
46 $(TAR) cf $@ ${@:.tar=}
47 # rm -Rf ${@:.tar=}
48
49 src/$(DISTNAME).tar.gz: Makefile
50 cd src; make $(DISTNAME).tar.gz
51
52 doc/vocabularies.xhtml: Makefile
53 cd doc; make
54
55 # Prepare a bundle for the IVOA document coordinator.
56 #
57 # The .../vocabularies-$(RELEASE) directory in the IVOA document
58 # tree has to contain the document itself, the tarball above
59 # (for easy retrieval, and because it is documented as being there
60 # in the document), and the various RDF files (so that they are retrievable
61 # at their namespace URLs).
62 #
63 # Include Apache-1.3 configuration files, so that the document coordinator
64 # should be able to simply unpack this tarball in the correct place.
65 # This should be regarded as temporary: replace it with the patterns based
66 # on Apache mod_rewrite (once Norman has checked with Bruno that that's
67 # supported on the ivoa.net Apache).
68 #
69 #ivoa-document-tree-$(RELEASE).tar: vocabularies-$(RELEASE).tar.gz
70 # rm -Rf ${@:.tar=}
71 # mkdir ${@:.tar=}
72 # TOP=`pwd`; DD=vocabularies-`echo $(RELEASEDATEN)|sed s/-//g`; \
73 # cd ${@:.tar=}; \
74 # $(TAR) xzf $$TOP/vocabularies-$(RELEASE).tar.gz; \
75 # mv vocabularies-$(RELEASE)/* .; rmdir vocabularies-$(RELEASE); \
76 # echo "This tarball should be unpacked so that the file @BASEURI@.html is served successfully" >000-Bruno-note; \
77 # cd $$DD; \
78 # for f in `ls *.ttl | sed 's/\.ttl$$//'`; do \
79 # sed "s/FOO/$$f/" $$TOP/ivoa-document-tree-template.var >$$f.var; \
80 # done; \
81 # cp $$TOP/ivoa-document-tree.htaccess .htaccess
82 # rm -f $@
83 # $(TAR) cf $@ ${@:.tar=}
84 ## rm -Rf ${@:.tar=}
85
86 ########################################
87 #
88 # Maintainance targets
89
90 # Note that 'configure' is checked in (to make it possible to configure and
91 # build the project from a checkout, with the minimum amount of fuss).
92 # However we don't here include a dependency of configure on configure.ac:
93 # because Subversion doesn't preserve timestamps, we couldn't guarantee that
94 # this rule wouldn't fire inappropriately, and a stray firing of this
95 # rule vitiates the point of including ./configure in the repository.
96 # Similarly for the Makefile:Makefile.in rule.
97
98 # A post-installation test target, which checks that all the redirections on the
99 # server match what the document says they'll be.
100 check:
101 @ echo "Install $(DISTNAME).tar.gz as directed, and then run 'make install-check'"
102
103 install-check: check-uris.sh
104 ./check-uris.sh
105
106 check-uris.sh: check-uris.sh.in Makefile
107 sed -e 's,@BASEURI\@,$(BASEURI),' \
108 -e 's,@DISTNAME\@,$(DISTNAME),' \
109 check-uris.sh.in >check-uris.sh
110 chmod +x check-uris.sh
111
112 clean:
113 for d in src doc; do (cd $$d; make clean); done
114
115 realclean: clean
116 rm -f Makefile config.log config.status
117 for d in src doc; do (cd $$d; make realclean); done

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