]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - progs/Makefile.in
ncurses 6.3
[ncurses.git] / progs / Makefile.in
index f2378d991e2fa2f3b005295ecb31515dec568406..d818af4e8154a80a7759030a395b283131219b57 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.109 2021/04/17 15:32:22 tom Exp $
+# $Id: Makefile.in,v 1.111 2021/07/03 15:45:33 tom Exp $
 ##############################################################################
 # Copyright 2020,2021 Thomas E. Dickey                                       #
 # Copyright 1998-2016,2018 Free Software Foundation, Inc.                    #
@@ -133,7 +133,7 @@ LINT_OPTS   = @LINT_OPTS@
 LINT_LIBS      = -lncurses @LIBS@
 
 AUTO_SRC = \
-       termsort.c \
+       termsort.h \
        transform.h
 
 # tic relies on direct access to the terminfo database
@@ -151,6 +151,23 @@ HEADER_DEPS        = \
        $(INCDIR)/nc_alloc.h
 
 ################################################################################
+
+@MAKE_PHONY@.PHONY :   all
+@MAKE_PHONY@.PHONY :   check
+@MAKE_PHONY@.PHONY :   clean
+@MAKE_PHONY@.PHONY :   distclean
+@MAKE_PHONY@.PHONY :   install
+@MAKE_PHONY@.PHONY :   install.libs
+@MAKE_PHONY@.PHONY :   install.progs
+@MAKE_PHONY@.PHONY :   libs
+@MAKE_PHONY@.PHONY :   lint
+@MAKE_PHONY@.PHONY :   mostlyclean
+@MAKE_PHONY@.PHONY :   realclean
+@MAKE_PHONY@.PHONY :   sources
+@MAKE_PHONY@.PHONY :   uninstall
+@MAKE_PHONY@.PHONY :   uninstall.libs
+@MAKE_PHONY@.PHONY :   uninstall.progs
+
 all:           $(AUTO_SRC) $(PROGS)
 
 sources:       $(AUTO_SRC)
@@ -292,7 +309,7 @@ DEPS_TSET = \
 tset$x: $(DEPS_TSET) $(DEPS_CURSES) transform.h
        @ECHO_LD@ $(LINK) $(DEPS_TSET) $(LDFLAGS_TINFO) -o $@
 
-termsort.c: $(srcdir)/MKtermsort.sh
+termsort.h: $(srcdir)/MKtermsort.sh
        $(SHELL) $(srcdir)/MKtermsort.sh $(AWK) $(srcdir)/../include/@TERMINFO_CAPS@ >$@
 
 #
@@ -336,6 +353,17 @@ lint:
        $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/tput.c                           $(LINT_LIBS)
        $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/tset.c                           $(LINT_LIBS)
 
+# 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 remainder of this file is automatically generated during configuration
 ###############################################################################