12200 fmd: Wrong prerequisites for generated files

Review Request #2491 - Created Jan. 16, 2020 and submitted

Information
Marcel Telka
illumos-gate
master
12200
a47004d...
Reviewers
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.
$
Andrew Stormont
John Levon
Gergő Mihály Doma
Marcel Telka
Review request changed

Status: Closed (submitted)

Change Summary:

commit 3b379e2a4b3fe1592962563cb8c50c330ce393d8
Author:     Marcel Telka <marcel@telka.sk>
AuthorDate: Thu Jan 16 12:53:43 2020 +0100
Commit:     Dan McDonald <danmcd@joyent.com>
CommitDate: Mon Jan 20 10:17:33 2020 -0500

    12200 fmd: Wrong prerequisites for generated files
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: John Levon <john.levon@joyent.com>
    Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

:100644 100644 caf737e114 a95c802d0c M	usr/src/cmd/fm/fmd/Makefile.fmd
Loading...