Fix oversight in previous error-reporting patch; mustn't pfree path string
[PostgreSQL.git] / src / backend / utils / Makefile
blobfaa7664b2fa87857bb0f88882cc2d2a6ea410555
2 # Makefile for utils
4 # $PostgreSQL$
7 subdir = src/backend/utils
8 top_builddir = ../../..
9 include $(top_builddir)/src/Makefile.global
11 OBJS = fmgrtab.o
12 SUBDIRS = adt cache error fmgr hash init mb misc mmgr resowner sort time
14 include $(top_srcdir)/src/backend/common.mk
16 all: fmgroids.h probes.h
18 $(SUBDIRS:%=%-recursive): fmgroids.h
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
23 ifneq ($(enable_dtrace), yes)
24 probes.h: Gen_dummy_probes.sed
25 endif
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
37 clean:
38 rm -f fmgroids.h fmgrtab.c probes.h