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

@@ -17,11 +17,10 @@
# as Ubuntu focal).
# note: '#-INCLUDE' is not just a comment
#
#-INCLUDE general-pre.370
# multiw-1.370 contains sections 1 to 2
#-INCLUDE multiw-1.370
PRECHECK+=checkmakefiles
ifndef LIBXPM
LIBXPM= -L/opt/X11/lib -lXpm
@@ -360,6 +359,10 @@ GAMEPERM = 0755
#-INCLUDE multisnd-post.370
#
.PHONY: checkmakefiles
checkmakefiles:
( $(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