X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=c%2B%2B%2FMakefile.in;h=bd7fcb1c8474675bba249c70aae4e5d8647d0f02;hp=a4f39e2ef65d11085aa616fa5ec58256aff04868;hb=7f4b9f390624835ceb0849965a7f6ff2dcb39d00;hpb=a5fe3726f7d4374e9b1551b535c8617b423996f2;ds=sidebyside diff --git a/c++/Makefile.in b/c++/Makefile.in index a4f39e2e..bd7fcb1c 100644 --- a/c++/Makefile.in +++ b/c++/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.129 2021/03/20 10:14:27 tom Exp $ +# $Id: Makefile.in,v 1.130 2021/04/18 15:13:58 tom Exp $ ############################################################################## # Copyright 2018-2020,2021 Thomas E. Dickey # # Copyright 1998-2015,2016 Free Software Foundation, Inc. # @@ -259,6 +259,18 @@ etip.h: $(srcdir)/etip.h.in $(srcdir)/edit_cfg.sh cp $(srcdir)/etip.h.in $@ $(SHELL) $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@ +# Verify that each header-file can be compiled without including another. +check:: + @$(SHELL) -c "for header in *.h;\ + do \ + [ \$${header} = etip.h ] && continue; \ + echo \"** testing \$${header}\" ; \ + echo \"#include <\$${header}>\" >headers.cc; \ + echo \"int main(int argc, char **argv) { (void) argc; (void) argv; return 0; }\" >>headers.cc; \ + $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) headers.cc; \ + done" + -@rm -f headers.* + ############################################################################### # The remainder of this file is automatically generated during configuration ###############################################################################