]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/Makefile.in
ncurses 6.2 - patch 20210418
[ncurses.git] / test / Makefile.in
index b511d71a213e58dff1e173670d87f030002c1a4a..e6edb9a691e33500c00fea7b122b795ee7e4fddb 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.126 2021/03/13 20:55:43 tom Exp $
+# $Id: Makefile.in,v 1.127 2021/04/18 11:48:06 tom Exp $
 ##############################################################################
 # Copyright 2020,2021 Thomas E. Dickey                                       #
 # Copyright 1998-2017,2018 Free Software Foundation, Inc.                    #
@@ -153,4 +153,15 @@ HEADER_DEPS        = \
        $(incdir)/unctrl.h \
        $(INCDIR)/nc_alloc.h
 
+# 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...