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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 714 - (show annotations)
Wed Aug 6 20:02:09 2008 UTC (12 years, 3 months ago) by norman.x.gray
File size: 2742 byte(s)
Change the way that vocabulary.html is generated from vocabulary.xml,
  after discovering some weirdness with the rendering of the
  previously generated file in some browsers -- some odd interaction
  between XHTML content and links and maybe the text/html MIME type, I
  don't know.
I now generate the XHTML and then convert it to HTML using an identity
  transform.

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. It includes a 000-webmaster note,
36 # to guide the destination webmaster where the files should be placed,
37 # and check-uris.sh, to help them check that everything's installed
38 # where it should be.
39 vocabularies-$(RELEASE).tar: src/$(DISTNAME).tar.gz doc/vocabularies.html check-uris.sh
40 D=${@:.tar=}; \
41 rm -Rf $$D; \
42 mkdir $$D; \
43 cp doc/vocabularies.html $$D/`echo $(DOCURI).html | sed 's,.*/,,'`; \
44 cp src/$(DISTNAME).tar.gz check-uris.sh $$D; \
45 ( echo "Document URI:"; echo " $(DOCURI).html"; echo; \
46 echo "Vocabulary base URI:"; echo " $(BASEURI)"; \
47 echo "unpack $(DISTNAME).tar.gz in that directory."; \
48 echo "Note the .htaccess in the RDF directory."; \
49 echo "Running ./check-uris.sh should confirm all redirections are OK.") > $$D/000-webmaster
50 rm -f $@
51 $(TAR) cf $@ ${@:.tar=}
52 # rm -Rf ${@:.tar=}
53
54 src/$(DISTNAME).tar.gz: Makefile
55 cd src; make $(DISTNAME).tar.gz
56
57 doc/vocabularies.html: Makefile
58 cd doc; make vocabularies.html
59
60 ########################################
61 #
62 # Maintainance targets
63
64 # Note that 'configure' is checked in (to make it possible to configure and
65 # build the project from a checkout, with the minimum amount of fuss).
66 # However we don't here include a dependency of configure on configure.ac:
67 # because Subversion doesn't preserve timestamps, we couldn't guarantee that
68 # this rule wouldn't fire inappropriately, and a stray firing of this
69 # rule vitiates the point of including ./configure in the repository.
70 # Similarly for the Makefile:Makefile.in rule.
71
72 # A post-installation test target, which checks that all the redirections on the
73 # server match what the document says they'll be.
74 check:
75 @ echo "Install $(DISTNAME).tar.gz as directed, and then run 'make install-check'"
76
77 install-check: check-uris.sh
78 ./check-uris.sh
79
80 check-uris.sh: check-uris.sh.in Makefile
81 sed -e 's,@BASEURI\@,$(BASEURI),' \
82 -e 's,@DISTNAME\@,$(DISTNAME),' \
83 check-uris.sh.in >check-uris.sh
84 chmod +x check-uris.sh
85
86 clean:
87 for d in src doc; do (cd $$d; make clean); done
88
89 realclean: clean
90 rm -f Makefile config.log config.status
91 for d in src doc; do (cd $$d; make realclean); done

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