File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Makefile for PL/Perl
2
- # $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.38 2010/01/09 02:40:50 adunstan Exp $
2
+ # $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.39 2010/01/09 03:53:40 tgl Exp $
3
3
4
4
subdir = src/pl/plperl
5
5
top_builddir = ../../..
@@ -27,7 +27,7 @@ override CPPFLAGS += -DPLPERL_HAVE_UID_GID
27
27
override CFLAGS += -Wno-comment
28
28
endif
29
29
30
- override CPPFLAGS := -I$(srcdir ) $(CPPFLAGS ) -I$(perl_archlibexp ) /CORE
30
+ override CPPFLAGS := -I. -I $(srcdir ) $(CPPFLAGS ) -I$(perl_archlibexp ) /CORE
31
31
32
32
rpathdir = $(perl_archlibexp ) /CORE
33
33
@@ -36,6 +36,8 @@ NAME = plperl
36
36
37
37
OBJS = plperl.o spi_internal.o SPI.o
38
38
39
+ PERLCHUNKS = plc_perlboot.pl plc_safe_bad.pl plc_safe_ok.pl
40
+
39
41
SHLIB_LINK = $(perl_embed_ldflags )
40
42
41
43
REGRESS_OPTS = --dbname=$(PL_TESTDB ) --load-language=plperl
@@ -47,8 +49,8 @@ include $(top_srcdir)/src/Makefile.shlib
47
49
48
50
plperl.o : perlchunks.h
49
51
50
- perlchunks.h : plc_ * .pl
51
- $(PERL ) text2macro.pl --strip=' ^(\#.*|\s*)$$' plc_ * .pl > perlchunks.htmp
52
+ perlchunks.h : $( PERLCHUNKS )
53
+ $(PERL ) $( srcdir ) / text2macro.pl --strip=' ^(\#.*|\s*)$$' $^ > perlchunks.htmp
52
54
mv perlchunks.htmp perlchunks.h
53
55
54
56
all : all-lib
You can’t perform that action at this time.
0 commit comments