From dbd3a57775e3b177d1a9c974d89862ab8a24b9f1 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sat, 1 Oct 2016 07:53:29 +0200 Subject: [PATCH 2/2] Make makefile for plpython really self-standing The submake-generated-headers can't be used as 'all' prerequisite at the same level with with 'all-lib', because 'submake-generated-headers' is actually prerequisite for 'all-libs' in this makefile. So use submake-generated-headers as $(OBJS) prerequisite, as several object files depend on it. Move the 'all' target before include statement, according to documentation in Makefile.shlib. This is follow-up for 548af97fcec5543603c20b61fec60f8147a05b29. --- src/pl/plpython/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile new file mode 100644 index 647b4b1..3a8b2c6 *** a/src/pl/plpython/Makefile --- b/src/pl/plpython/Makefile *************** REGRESS = \ *** 93,102 **** REGRESS_PLPYTHON3_MANGLE := $(REGRESS) ! include $(top_srcdir)/src/Makefile.shlib ! all: submake-generated-headers all-lib install: all install-lib install-data --- 93,103 ---- REGRESS_PLPYTHON3_MANGLE := $(REGRESS) ! $(OBJS): | submake-generated-headers ! all: all-lib + include $(top_srcdir)/src/Makefile.shlib install: all install-lib install-data -- 2.7.4