From 0ab1b79f810198ef56d4ad3c26b93c35294a78fb Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 23 May 2018 11:51:59 +0200 Subject: [PATCH] buildsys: fixup IPCConst.pm dependencies IPCConst.pm depends on cfs-ipc-ops.h. Additionally, since the header is the "input" and IPCConst.pm.awk is the generator, use the header as the main direct dependency and add the generator as a secondary dependency afterwards (thus we have to swap the awk parameters). Signed-off-by: Wolfgang Bumiller --- data/PVE/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/PVE/Makefile.am b/data/PVE/Makefile.am index 393f0c8..6524a97 100644 --- a/data/PVE/Makefile.am +++ b/data/PVE/Makefile.am @@ -4,9 +4,10 @@ IPCC.c: IPCC.xs xsubpp IPCC.xs > IPCC.xsc mv IPCC.xsc IPCC.c -Cluster/IPCConst.pm: Cluster/IPCConst.pm.awk - awk -f $^ ../src/cfs-ipc-ops.h > $@.tmp +Cluster/IPCConst.pm: ../src/cfs-ipc-ops.h + awk -f Cluster/IPCConst.pm.awk $< > $@.tmp mv $@.tmp $@ +Cluster/IPCConst.pm: Cluster/IPCConst.pm.awk AM_CFLAGS = -shared -fPIC -Wl,-z,relro -Wall -Werror -Wno-strict-aliasing $(PERL_INC) -DXS_VERSION=VERSION LDADD = $(QB_LIBS) -- 2.39.2