X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=test%2FMakefile.in;h=2931b987bf1d8de0f13448defd1b95e3be58a850;hb=461e72d1826483cb2c2cb243412f2dc5b00b2b1a;hp=b511d71a213e58dff1e173670d87f030002c1a4a;hpb=bec710451bd1f286840c4e7e18fc646bd63adeba;p=ncurses.git diff --git a/test/Makefile.in b/test/Makefile.in index b511d71a..2931b987 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.126 2021/03/13 20:55:43 tom Exp $ +# $Id: Makefile.in,v 1.129 2021/07/03 15:45:33 tom Exp $ ############################################################################## # Copyright 2020,2021 Thomas E. Dickey # # Copyright 1998-2017,2018 Free Software Foundation, Inc. # @@ -153,4 +153,22 @@ HEADER_DEPS = \ $(incdir)/unctrl.h \ $(INCDIR)/nc_alloc.h +################################################################################ + +@MAKE_PHONY@.PHONY : all +@MAKE_PHONY@.PHONY : check + +all:: + +# Verify that each header-file can be compiled without including another. +check:: + @$(SHELL) -c "for header in *.h;\ + do \ + echo \"** testing \$${header}\" ; \ + echo \"#include <\$${header}>\" >headers.c; \ + echo \"int main(void) { return 0; }\" >>headers.c; \ + $(CC) -c $(CFLAGS) $(CPPFLAGS) headers.c; \ + done" + -@rm -f headers.* + # The rest is generated from the "programs" and "modules" files...