12200 fmd: Wrong prerequisites for generated files

Review Request #2491 — Created Jan. 16, 2020 and submitted — Latest diff uploaded

marcel
illumos-gate
master
12200
a47004d...
general
This fixes improper prerequisites in Makefile for generated fmd_svc_adm.c,
fmd_svc_api.c, fmd_xdr_adm.c, and fmd_xdr_api.c files for fmd.
Without the fix:

$ cd usr/src/cmd/fm/fmd/i386/
$ make fmd_svc_adm.c
`fmd_svc_adm.c' is up to date.
$ touch ../common/fmd_rpc_adm.x
$ make fmd_svc_adm.c
/usr/bin/rpcgen -CMN -h -o ../common/fmd_rpc_adm.h ../common/fmd_rpc_adm.x
/usr/bin/rpcgen -CMN -m -o fmd_svc_adm.c `echo ../common/fmd_rpc_adm.h | sed 's/h$/x/'`
$ touch ../common/fmd_rpc_adm.h
$ make fmd_svc_adm.c
/usr/bin/rpcgen -CMN -m -o fmd_svc_adm.c `echo ../common/fmd_rpc_adm.h | sed 's/h$/x/'`
$

With the fix:

$ cd usr/src/cmd/fm/fmd/i386/
$ make fmd_svc_adm.c
`fmd_svc_adm.c' is up to date.
$ touch ../common/fmd_rpc_adm.x
$ make fmd_svc_adm.c
/usr/bin/rpcgen -CMN -m -o fmd_svc_adm.c ../common/fmd_rpc_adm.x
$ touch ../common/fmd_rpc_adm.h
$ make fmd_svc_adm.c
`fmd_svc_adm.c' is up to date.
$
Loading...