12188 libfmd_adm: Wrong prerequisites for generated files

Review Request #2486 — Created Jan. 14, 2020 and submitted — Latest diff uploaded

marcel
illumos-gate
master
12188
99c8745...
general
This fixes improper prerequisites in Makefile for both fmd_rpc.c and fmd_xdr.c.
Without the fix:

$ cd usr/src/lib/fm/libfmd_adm/amd64/
$ make fmd_rpc.c                                                                        
`fmd_rpc.c' is up to date.
$ touch fmd_rpc_adm.x                                                                   
$ make fmd_rpc.c                                                                        
/usr/bin/rpcgen -CMN -h -o fmd_rpc_adm.h fmd_rpc_adm.x
/usr/bin/rpcgen -CMN -l -o fmd_rpc.c fmd_rpc_adm.x
$ touch fmd_rpc_adm.h                                                                   
$ make fmd_rpc.c                                                                        
/usr/bin/rpcgen -CMN -l -o fmd_rpc.c fmd_rpc_adm.x
$

With the fix:

$ cd usr/src/lib/fm/libfmd_adm/amd64/
$ make fmd_rpc.c
`fmd_rpc.c' is up to date.
$ touch fmd_rpc_adm.x
$ make fmd_rpc.c
/usr/bin/rpcgen -CMN -l -o fmd_rpc.c fmd_rpc_adm.x
$ touch fmd_rpc_adm.h
$ make fmd_rpc.c
`fmd_rpc.c' is up to date.
$
Loading...