/[pgestraier]/trunk/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations)
Thu May 25 18:46:49 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 1148 byte(s)
begin tutorial
1 dir=`pwd`
2 code=pgest
3
4 pod2html=pod2xhtml.pl --top ''
5 cite2href=sed -e 's!<cite>\(.*\)</cite>!<a href=\"\1.html\">\1</a>!'
6
7 all: install
8 psql test < pgest.sql
9 cat test.sql | sed "s,##dir##,${dir}," | psql test
10
11 clean:
12 rm -Rf data/casket *.o *.so doc
13
14 index:
15 cd data && make index
16
17 install: ${code}.so
18 sudo cp ${code}.so `pg_config --pkglibdir`
19
20 test:
21 perl -e 'use Test::Harness qw(&runtests $$verbose); $$verbose=0; runtests @ARGV;' t/*.t
22
23 html:
24 test -d doc || mkdir doc
25 ${pod2html} < Tutorial.pod | ${cite2href} > doc/Tutorial.html
26 ${pod2html} < README.pod | ${cite2href} > doc/pgestraier.html
27 svn update && svn2html.pl > doc/ChangeLog.html
28
29 cvs:
30 svn2cvs.pl file:///home/dpavlin/private/svn/pgestraier/trunk/ :ext:dpavlin@cvs.pgfoundry.org:/cvsroot/pgestraier pgestraier
31 test -f doc/pgestraier.html && rsync doc/pgestraier.html pgfoundry.org:/home/pgfoundry.org/groups/pgestraier/htdocs/index.html || true
32
33 %.o: %.c
34 @echo $@ $< $^
35 cc -Wall -I`pg_config --includedir-server` -fpic -c $< `estconfig --cflags || pkg-config hyperestraier --cflags`
36
37 %.so: %.o
38 @echo $@ $< $^
39 cc -shared `estconfig --ldflags` `estconfig --libs` -o $@ $<
40

  ViewVC Help
Powered by ViewVC 1.1.26