ncurses 6.2 - patch 20200627
[ncurses.git] / test / mk-test.awk
index f7d4fd59bd470e63e13b8e0c08675279b91796ed..ac4203aaac56a3d4b10d7f2b61123cce167c1c9c 100644 (file)
@@ -1,6 +1,7 @@
-# $Id: mk-test.awk,v 1.16 2017/08/11 16:51:10 tom Exp $
+# $Id: mk-test.awk,v 1.23 2020/02/02 23:34:34 tom Exp $
 ##############################################################################
-# Copyright (c) 2006-2010,2015 Free Software Foundation, Inc.                #
+# Copyright 2019,2020 Thomas E. Dickey                                       #
+# Copyright 2006-2017,2018 Free Software Foundation, Inc.                    #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -67,12 +68,21 @@ END {
                }
                print "";
        }
-       print   "DATAFILES = $(srcdir)/*.x* $(srcdir)/*.dat"
+       print   "SCRIPTS = \\"
+       print   "       $(srcdir)/savescreen.sh \\"
+       print   "       $(srcdir)/tput-colorcube \\"
+       print   "       $(srcdir)/tput-initc \\"
+       print   "       $(srcdir)/tracemunch"
+       print   "DATAFILES = \\"
+       print   "       $(srcdir)/*.x* \\"
+       print   "       $(srcdir)/*.dat"
        print   ""
        print   "all: $(TESTS)"
        print   ""
        print   "sources:"
        print   ""
+       print   "check:"
+       print   "       @ echo The test-programs are interactive"
        print   "tags:"
        print   "       $(CTAGS) *.[ch]"
        print   ""
@@ -85,11 +95,19 @@ END {
                print   "# we might install the test-programs"
                print   "install \\"
                print   "install.test: $(BINDIR) $(DATADIR) $(TESTS)"
+
                print   "       @$(SHELL) -c 'for src in $(TESTS); do \\"
                print   "       dst=`echo $$src | $(TRANSFORM)`; \\"
                print   "       echo \"installing $$src -> $(BINDIR)/$$dst\"; \\"
                print   "       $(INSTALL_PROG) $$src $(BINDIR)/$$dst; \\"
                print   "       done'"
+
+               print   "       @$(SHELL) -c 'for src in $(SCRIPTS); do \\"
+               print   "       dst=`echo $$src | sed -e 's,^.*/,,' | $(TRANSFORM)`; \\"
+               print   "       echo \"installing $$src -> $(BINDIR)/$$dst\"; \\"
+               print   "       $(INSTALL_SCRIPT) $$src $(BINDIR)/$$dst; \\"
+               print   "       done'"
+
                print   "       @$(SHELL) -c 'for src in $(DATAFILES); do \\"
                print   "       dst=`echo $$src | sed -e 's,^.*/,,'`; \\"
                print   "       echo \"installing $$src -> $(DATADIR)/$$dst\"; \\"
@@ -98,10 +116,17 @@ END        {
                print   ""
                print   "uninstall \\"
                print   "uninstall.test:"
+
                print   "       @$(SHELL) -c 'for src in $(TESTS); do \\"
                print   "       dst=`echo $$src | $(TRANSFORM)`; \\"
                print   "       rm -f $(BINDIR)/$$dst; \\"
                print   "       done'"
+
+               print   "       @$(SHELL) -c 'for src in $(SCRIPTS); do \\"
+               print   "       dst=`echo $$src | sed -e 's,^.*/,,' | $(TRANSFORM)`; \\"
+               print   "       rm -f $(BINDIR)/$$dst; \\"
+               print   "       done'"
+
                print   "       @$(SHELL) -c 'for src in $(DATAFILES); do \\"
                print   "       dst=`echo $$src | sed -e 's,^.*/,,'`; \\"
                print   "       rm -f $(DATADIR)/$$dst; \\"