12188 libfmd_adm: Wrong prerequisites for generated files

Review Request #2486 - Created Jan. 14, 2020 and submitted

Information
Marcel Telka
illumos-gate
master
12188
99c8745...
Reviewers
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.
$
Toomas Soome
Matthias Scheler
Marcel Telka
Review request changed

Status: Closed (submitted)

Change Summary:

commit 005be40cf09c8b0bcf2de631893dae837ff4cb8a
Author:     Marcel Telka <marcel@telka.sk>
AuthorDate: Tue Jan 14 12:01:45 2020 +0100
Commit:     Dan McDonald <danmcd@joyent.com>
CommitDate: Wed Jan 15 15:27:02 2020 -0500

    12188 libfmd_adm: Wrong prerequisites for generated files
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Matthias Scheler <mscheler@tintri.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

:100644 100644 8e58527bef 6344075d73 M	usr/src/lib/fm/libfmd_adm/Makefile.com
Loading...