From 3565492693d71d04d0c4f3fd13ef8ac85a4b50d2 Mon Sep 17 00:00:00 2001 From: Thorsten Otto Date: Wed, 5 Jun 2024 15:47:21 +0200 Subject: [PATCH] Make sure that install-headers installs generated files when run in a clean source directory --- Makefile | 2 +- include/Makefile | 2 +- sunrpc/Makefile | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index af6f85d..aada4a1 100644 --- a/Makefile +++ b/Makefile @@ -267,7 +267,7 @@ install-headers-recursive: echo "attempting to install on host; aborting" >&2; \ exit 1; \ fi; \ - list='include'; \ + list='include sunrpc'; \ for subdir in $$list; do \ target=`echo $@ | sed s/-recursive//`; \ echo "Making $$target in $$subdir"; \ diff --git a/include/Makefile b/include/Makefile index cf3a5bc..e3784b3 100644 --- a/include/Makefile +++ b/include/Makefile @@ -77,7 +77,7 @@ syscall-list.h: $(csrcdir)/syscalls.list $(csrcdir)/gensys includefiles = $(filter %.h, $(MISCFILES)) stab.def syscall-list.h -install-include install-headers: remove-stale +install-include install-headers: remove-stale linker.h features.h syscall-list.h $(mkinstalldirs) $(DESTDIR)$(includedir) @list='$(includefiles)'; for p in $$list; do \ if test -f $$p; then \ diff --git a/sunrpc/Makefile b/sunrpc/Makefile index a1a583c..951a9dd 100644 --- a/sunrpc/Makefile +++ b/sunrpc/Makefile @@ -60,6 +60,8 @@ install: all-here install-rpcsvc-programs install-rpcsvc-headers uninstall: uninstall-rpcsvc-programs uninstall-rpcsvc-headers +install-include install-headers: install-rpcsvc-headers + # Not suitable for cross-compiling. ifndef CROSS