~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/backend/utils/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Makefile for utils
 
3
#
 
4
# $PostgreSQL$
 
5
#
 
6
 
 
7
subdir = src/backend/utils
 
8
top_builddir = ../../..
 
9
include $(top_builddir)/src/Makefile.global
 
10
 
 
11
OBJS        = fmgrtab.o
 
12
SUBDIRS     = adt cache error fmgr hash init mb misc mmgr resowner sort time
 
13
 
 
14
include $(top_srcdir)/src/backend/common.mk
 
15
 
 
16
all: fmgroids.h probes.h
 
17
 
 
18
$(SUBDIRS:%=%-recursive): fmgroids.h
 
19
 
 
20
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(top_srcdir)/src/include/catalog/pg_proc.h
 
21
        AWK='$(AWK)' $(SHELL) $< $(top_srcdir)/src/include/catalog/pg_proc.h
 
22
 
 
23
ifneq ($(enable_dtrace), yes)
 
24
probes.h: Gen_dummy_probes.sed
 
25
endif
 
26
 
 
27
probes.h: probes.d
 
28
ifeq ($(enable_dtrace), yes)
 
29
        $(DTRACE) -C -h -s $< -o $@.tmp
 
30
        sed -e 's/POSTGRESQL_/TRACE_POSTGRESQL_/g' $@.tmp >$@
 
31
        rm $@.tmp
 
32
else
 
33
        sed -f $(srcdir)/Gen_dummy_probes.sed $< >$@
 
34
endif
 
35
 
 
36
 
 
37
clean:
 
38
        rm -f fmgroids.h fmgrtab.c probes.h