Skip to content

Commit

Permalink
Make sure that install-headers installs generated files when run in a
Browse files Browse the repository at this point in the history
clean source directory
  • Loading branch information
th-otto committed Jun 5, 2024
1 parent efb57cd commit 3565492
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"; \
Expand Down
2 changes: 1 addition & 1 deletion include/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions sunrpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3565492

Please sign in to comment.