From 9a35264c4ba4a7bed42a0b81fe6cdf65c97b1b34 Mon Sep 17 00:00:00 2001 From: Thorsten Otto Date: Thu, 6 Jun 2024 08:44:02 +0200 Subject: [PATCH] Make sure that sysbind.h is generated before running install-headers --- Makefile | 2 ++ syscall/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index aada4a1..762bb77 100644 --- a/Makefile +++ b/Makefile @@ -242,6 +242,7 @@ uninstall-include-recursive uninstall-man-recursive: fi; \ list='$(SUBDIRS)'; \ if test "$@" = clean-recursive; then list='$(filter-out $(LIBDIRS),$(SUBDIRS))'; fi; \ + if test "$@" = distclean-recursive; then list='$(filter-out $(LIBDIRS),$(SUBDIRS))'; fi; \ for subdir in $$list; do \ target=`echo $@ | sed s/-recursive//`; \ echo "Making $$target in $$subdir"; \ @@ -267,6 +268,7 @@ install-headers-recursive: echo "attempting to install on host; aborting" >&2; \ exit 1; \ fi; \ + $(MAKE) -C syscall all || exit 1; \ list='include sunrpc'; \ for subdir in $$list; do \ target=`echo $@ | sed s/-recursive//`; \ diff --git a/syscall/Makefile b/syscall/Makefile index cbef3b1..5137f8e 100644 --- a/syscall/Makefile +++ b/syscall/Makefile @@ -37,6 +37,7 @@ include $(top_srcdir)/checkrules distclean:: $(RM) SRCFILES.traps syscalls.stmp .stmp.pars pars.c pars.h scan.c + $(RM) $(top_srcdir)/include/mint/sysbind.h $(top_srcdir)/include/mint/trap{1,13,14}.h clean:: $(RM) gen-syscall