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

Contents of /trunk/projects/vocabularies/src/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: 1568 byte(s)
Add post-installation self-test

1 # Makefile for the IVOA vocabularies SKOS distribution
2 #
3 # Each of the SUBDIRS X, should generate a X/X.tar and X/Notes file
4 # as part of its 'all' target.
5 #
6 # The 'all' target in this file produces a $(DISTNAME).tar file.
7
8
9 # Distribution name -- can be overridden
10 DISTNAME=@DISTNAME@
11
12 BASEURI=@BASEURI@
13
14 # The 'tar' program -- it's sometimes useful to override this
15 # on the command line
16 TAR=@TAR@
17
18 ########################################
19 #
20 # The list of vocabularies which live under here.
21
22 SUBDIRS=AAkeys AOIM UCD IVOAT IAUT93
23
24 ########################################
25 #
26 # Rules
27
28 %.gz: %
29 rm -f $@
30 gzip --best $<
31
32 %.stamp: %
33 cd $<; make
34 touch $@
35
36
37
38 ########################################
39 #
40 # Targets
41
42 all: $(DISTNAME).tar
43
44 $(DISTNAME).tar: $(SUBDIRS:=.stamp)
45 rm -Rf tempdir
46 mkdir tempdir tempdir/$(DISTNAME)
47 cd tempdir/$(DISTNAME); \
48 for d in $(SUBDIRS); do mkdir $$d; (cd $$d; tar xf ../../../$$d/$$d.tar); done
49 sed -e '/^##/d' \
50 -e 's,@BASE\@,'`echo $(BASEURI)|sed 's,^http://[^/]*,,'`, \
51 -e 's,@FILEOPTS\@,'`echo $(SUBDIRS) | sed 's/ /|/g'`, \
52 -e 's,@SUBDIR\@,$(DISTNAME),' dot-htaccess >tempdir/.htaccess
53 ( cat README; \
54 for d in $(SUBDIRS); do echo;echo;if test -f $$d/Notes; then cat $$d/Notes; else echo "### No notes on $$d";fi; done; ) \
55 >tempdir/README-$(DISTNAME)
56 cd tempdir; $(TAR) cf ../$@ .
57 # rm -Rf tempdir
58
59 clean:
60 rm -Rf *.stamp $(DISTNAME).tar $(DISTNAME).tar.gz
61 for d in $(SUBDIRS); do (cd $$d; make clean); done
62
63 realclean: clean
64 rm -f Makefile
65 # for d in $(SUBDIRS); do (cd $$d; make -i realclean); done

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