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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (show annotations)
Tue Dec 4 22:22:28 2007 UTC (12 years, 11 months ago) by norman.x.gray
File size: 1370 byte(s)
Add Rick Hessman's IVOAT vocabulary to the tree, as a minimally
  adjusted edit of the files in
  http://www.astro.physik.uni-goettingen.de/~hessman/rdf/IVOAT/IVOAT.tar
Improved instructions in vocabularies/README for adding a vocabulary.

1 # makefle
2
3 RDFROOT=IVOAT
4 RDFPATH=@BASEURI@/
5 #RDFPATH="http://www.astro.physik.uni-goettingen.de/~hessman/rdf/"
6
7 RAPPER=@RAPPER@
8
9 # ----- DON'T NEED TO MODIFY STUFF BELOW -----
10
11 ### NG edited :
12 ### 'create' -> '$(RDFROOT).rdf'
13 ### 'archive' -> '$(RDFROOT).tar'
14 ### 'header' -> 'header.html'
15 ### ...so targets can be satisfied,
16 ### then added $(RDFROOT).ttl target, and adjusted 'all'.
17
18 # Note: the following files don't exist the first time this Makefile is
19 # invoked in a fresh checkout.
20 NUM=$(shell cat ./NUMBER_OF_ENTRIES)
21 TOP=$(shell cat ./NUMBER_OF_TOP_ENTRIES)
22
23 EDIT1=$(shell date "+'s/DATEGOESHERE/%Y-%m-%dT%H:%M:%S/'")
24 EDIT2='s/ROOTGOESHERE/$(RDFROOT)/g'
25 EDIT3='s/TOTALGOESHERE/$(NUM)/'
26 EDIT4='s/TOPGOESHERE/$(TOP)/'
27
28 all: $(RDFROOT).rdf $(RDFROOT).ttl
29
30 dist: $(RDFROOT).tar
31
32 STUFF= Makefile doc.css
33
34 header.html:
35 cat header_form.txt | sed $(EDIT1) | sed $(EDIT2) | sed $(EDIT3) | sed $(EDIT4) > header.html
36
37 $(RDFROOT).rdf: header.html
38 python thesaurus.py --root=$(RDFROOT) --path=$(RDFPATH)
39
40 $(RDFROOT).tar:
41 tar -cf $(RDFROOT).tar *.txt *.html *.rdf *.py *.png $(STUFF) dict/*
42
43 update: unarchive $(RDFROOT).rdf
44
45 unarchive:
46 tar -vxf $(RDFROOT).tar
47
48 iterate:
49 mv $(RDFROOT).txt $(RDFROOT)_old.txt
50 mv newest.txt $(RDFROOT).txt
51
52 $(RDFROOT).ttl: $(RDFROOT).rdf
53 rm -f $@ tmp
54 $(RAPPER) -i rdfxml -o turtle -O $(RDFPATH)$(RDFROOT) $< >tmp && mv tmp $@
55

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