]> git.proxmox.com Git - pve-cluster.git/commitdiff
buildsys: fixup IPCConst.pm dependencies
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 23 May 2018 09:51:59 +0000 (11:51 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 23 May 2018 09:51:59 +0000 (11:51 +0200)
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>
data/PVE/Makefile.am

index 393f0c8a506cf463a48ac1fd3e7526dccb0dbd85..6524a9744f6062c992ead040a07b4619b163865b 100644 (file)
@@ -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)