/[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 11 - (show annotations)
Thu Dec 6 17:02:28 2007 UTC (12 years, 11 months ago) by norman.x.gray
File size: 1475 byte(s)
src/Makefile.in now builds IVOAT properly
src/IVOAT/Makefile.in now includes a non-dummy clean target

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

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