do the Makefile checking using make itself

This commit is contained in:
nhmall
2023-11-20 22:14:22 -05:00
parent 18962b41d9
commit 4a08f20090
5 changed files with 46 additions and 64 deletions

View File

@@ -18,10 +18,11 @@
#
# note: '#-INCLUDE' is not just a comment; multiw-1 contains sections 1 to 2
#-INCLUDE general-pre.370
#
#-INCLUDE multiw-1.370
PRECHECK+=checkmakefiles
ifneq "$(USEMACPORTS)" "1"
HAVE_HOMEBREW := $(shell expr `which -s brew; echo $$?` = 0)
endif
@@ -487,6 +488,11 @@ endif # MAKEFILE_SRC
#-INCLUDE multisnd-post.370
#
.PHONY: checkmakefiles
checkmakefiles: checkstamp
( $(MAKE) -f sys/unix/Makefile.check )
ifdef WANT_LIBNH
$(TARGETPFX)libnh.a: $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a
$(AR) rcs $@ $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a