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 <w.bumiller@proxmox.com>
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)