mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
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:
@@ -142,6 +142,12 @@ DISTLIST= ${SCRIPT_SRC} ${MAKE_FILE} README.src
|
||||
#
|
||||
CALCLIBLIST=
|
||||
|
||||
# complete list of files that may be created as part of the build process
|
||||
#
|
||||
# Used by chk_tree via make prep
|
||||
#
|
||||
BUILD_ALL= ${SCRIPT} README
|
||||
|
||||
# complete list of targets
|
||||
#
|
||||
# NOTE: This list MUST be coordinated with the ${CSCRIPT_TARGETS} variable
|
||||
@@ -149,10 +155,11 @@ CALCLIBLIST=
|
||||
#
|
||||
CSCRIPT_TARGETS= ${SCRIPT}
|
||||
TARGETS= ${CSCRIPT_TARGETS} README
|
||||
#
|
||||
|
||||
# rules that are not also names of files
|
||||
#
|
||||
PHONY= all clobber distlist install
|
||||
PHONY= all distlist buildlist distdir calcliblist detaillist depend \
|
||||
echo_inst_files clean clobber install uninstall
|
||||
|
||||
|
||||
############################################################
|
||||
@@ -206,6 +213,13 @@ distlist: ${DISTLIST}
|
||||
fi; \
|
||||
done | LANG=C ${SORT}
|
||||
|
||||
buildlist:
|
||||
${Q} for i in ${BUILD_ALL} /dev/null; do \
|
||||
if [ X"$$i" != X"/dev/null" ]; then \
|
||||
echo cscript/$$i; \
|
||||
fi; \
|
||||
done | fgrep -v '.bak' | LANG=C ${SORT}
|
||||
|
||||
distdir:
|
||||
${Q} echo cscript
|
||||
|
||||
|
Reference in New Issue
Block a user