fix missing version.h, add chk_tree tool

The tarball for calc version 2.15.0.0 was missing version.h.
The version.h is now listed as part of the calc distribution.

Added a chk_tree tool to help look for problems such as files that are
result of building calc that are also part of the calc distribution,
and files that are part of the calc source that are missing from the
calc distribution, and files that are of unknown status that are either
result of building calc nor missing from the calc distribution.

Updated file lists in Makefile, sorting as needed.

Updated Makefile PHONY rule to include Makefile rules that are NOT files.

Reduced make chatter for rules that build lists.

Added make verifydist to verify the existence of files that are part of
the calc distribution.

Added make verifydist to make prep.

Added a chk_tree double check, one after make clobber, one before the
final make chk, to make prep.
This commit is contained in:
Landon Curt Noll
2023-10-05 02:50:45 -07:00
parent 0eee1a615d
commit e96ef61718
8 changed files with 494 additions and 68 deletions

View File

@@ -254,10 +254,18 @@ DISTLIST= ${STD_HELP_FILES} ${DETAIL_HELP} ${MAKE_FILE} \
# These files are used to make (but not built) a calc .a link library
#
CALCLIBLIST=
# complete list of files that may be created as part of the build process
#
# Used by chk_tree via make prep
#
BUILD_ALL= ${BLT_HELP_FILES} ${SINGULAR_FILES} ${DETAIL_CLONE} \
full funclist${EXT} funclist.c funclist.o
# rules that are not also names of files
#
PHONY= all clobber distlist install
PHONY= all distlist buildlist distdir calcliblist detail_help_list \
echo_inst_files clean clobber install uninstall
############################################################
@@ -278,6 +286,8 @@ all: ${FULL_HELP_FILES} full ${DETAIL_HELP} ${DETAIL_CLONE} \
# additional Makefile targets #
###############################
.PHONY: ${PHONY}
# used by the upper level Makefile to determine of we have done all
#
# NOTE: Due to bogus shells found on one common system we must have
@@ -287,8 +297,6 @@ all: ${FULL_HELP_FILES} full ${DETAIL_HELP} ${DETAIL_CLONE} \
${RM} -f .all
${TOUCH} .all
.PHONY: ${PHONY}
bindings: ../cal/bindings
${RM} -f $@
${CP} ../cal/bindings $@
@@ -619,6 +627,13 @@ distlist: ${DISTLIST}
fi; \
done | fgrep -v '.bak' | LANG=C ${SORT}
buildlist:
${Q} for i in ${BUILD_ALL} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \
echo help/$$i; \
fi; \
done | fgrep -v '.bak' | LANG=C ${SORT}
distdir:
${Q} echo help