⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Calc Software Package for Number Calc
💻
📖 第 1 页 / 共 2 页
字号:
#!/bin/make## help - makefile for calc help files## Copyright (C) 1999-2006  Landon Curt Noll## Calc is open software; you can redistribute it and/or modify it under# the terms of the version 2.1 of the GNU Lesser General Public License# as published by the Free Software Foundation.## Calc is distributed in the hope that it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY# or FITNESS FOR A PARTICULAR PURPOSE.	See the GNU Lesser General# Public License for more details.## A copy of version 2.1 of the GNU Lesser General Public License is# distributed with calc under the filename COPYING-LGPL.  You should have# received a copy with calc; if not, write to Free Software Foundation, Inc.# 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.## @(#) $Revision: 29.36 $# @(#) $Id: Makefile,v 29.36 2007/02/07 00:31:06 chongo Exp $# @(#) $Source: /usr/local/src/cmd/calc/help/RCS/Makefile,v $## Under source code control:	1991/07/23 06:47:57# File existed as early as:	1991## chongo <was here> /\oo/\	http://www.isthe.com/chongo/# Share and enjoy!  :-) http://www.isthe.com/chongo/tech/comp/calc/## calculator by David I. Bell with help/mods from others# Makefile by Landon Curt Noll# required vars#SHELL= /bin/shMAKE_FILE= Makefile##### Normally, the upper level makefile will set these values.  We provide# a default here just in case you want to build from this directory.##### Where the system include (.h) files are kept## For DJGPP, select:##	INCDIR= /dev/env/DJDIR/include## If in doubt, set:##	INCDIR= /usr/include##INCDIR= /usr/local/include#INCDIR= /dev/env/DJDIR/includeINCDIR= /usr/include# where to install calc realted things## ${BINDIR}		where to install calc binary files# ${LIBDIR}		where calc link library (*.a) files are installed# ${CALC_SHAREDIR}	where to install calc help, .cal, startup, config files## NOTE: The install rule prepends installation paths with ${T}, which#	by default is empty.  If ${T} is non-empty, then installation#	locations will be relative to the ${T} directory.## For DJGPP, select:##	BINDIR= /dev/env/DJDIR/bin#	LIBDIR= /dev/env/DJDIR/lib#	CALC_SHAREDIR= /dev/env/DJDIR/share/calc## If in doubt, set:##	BINDIR= /usr/bin#	LIBDIR= /usr/lib#	CALC_SHAREDIR= /usr/share/calc##BINDIR= /usr/local/bin#BINDIR= /dev/env/DJDIR/binBINDIR= /usr/bin#LIBDIR= /usr/local/lib#LIBDIR= /dev/env/DJDIR/libLIBDIR= /usr/lib#CALC_SHAREDIR= /usr/local/lib/calc#CALC_SHAREDIR= /dev/env/DJDIR/share/calcCALC_SHAREDIR= /usr/share/calc# By default, these values are based CALC_SHAREDIR, INCDIR, BINDIR# ---------------------------------------------------------------# ${HELPDIR}		where the help directory is installed# ${CALC_INCDIR}	where the calc include files are installed# ${CUSTOMCALDIR}	where custom *.cal files are installed# ${CUSTOMHELPDIR}	where custom help files are installed# ${CUSTOMINCPDIR}	where custom .h files are installed# ${SCRIPTDIR}		where calc shell scripts are installed## NOTE: The install rule prepends installation paths with ${T}, which#	by default is empty.  If ${T} is non-empty, then installation#	locations will be relative to the ${T} directory.## If in doubt, set:##	HELPDIR= ${CALC_SHAREDIR}/help#	CALC_INCDIR= ${INCDIR}/calc#	CUSTOMCALDIR= ${CALC_SHAREDIR}/custom#	CUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelp#	CUSTOMINCDIR= ${CALC_INCDIR}/custom#	SCRIPTDIR= ${BINDIR}/cscript#HELPDIR= ${CALC_SHAREDIR}/helpCALC_INCDIR= ${INCDIR}/calcCUSTOMCALDIR= ${CALC_SHAREDIR}/customCUSTOMHELPDIR= ${CALC_SHAREDIR}/custhelpCUSTOMINCDIR= ${CALC_INCDIR}/customSCRIPTDIR= ${BINDIR}/cscript# T - top level directory under which calc will be installed## The calc install is performed under ${T}, the calc build is# performed under /.	The purpose for ${T} is to allow someone# to install calc somewhere other than into the system area.## For example, if:##     BINDIR= /usr/bin#     LIBDIR= /usr/lib#     CALC_SHAREDIR= /usr/share/calc## and if:##     T= /var/tmp/testing## Then the installation locations will be:##     calc binary files:	/var/tmp/testing/usr/bin#     calc link library:	/var/tmp/testing/usr/lib#     calc help, .cal ...:	/var/tmp/testing/usr/share/calc#     ... etc ...		/var/tmp/testing/...## If ${T} is empty, calc is installed under /, which is the same# top of tree for which it was built.  If ${T} is non-empty, then# calc is installed under ${T}, as if one had to chroot under# ${T} for calc to operate.## If in doubt, use T=#T=# Makefile debug## Q=@	do not echo internal makefile actions (quiet mode)# Q=	echo internal makefile actions (debug / verbose mode)##Q=Q=@# standard tools#LCC= ccICFLAGS=ILDFLAGS=CHMOD= chmodSED= sedSORT= sortFMT= fmtCMP= cmpCP= cpMV= mvTRUE= trueRM= rmMKDIR= mkdirRMDIR= rmdirTOUCH= touchCAT= cat# Some out of date operating systems require / want an executable to# end with a certain file extension.  Some compile systems such as# Cygwin build calc as calc.exe.  The EXT variable is used to denote# the extension required by such.## EXT=				# normal Un*x / Linux / GNU/Linux systems# EXT=.exe			# windoz / Cygwin## If in doubt, use EXT=#EXT=#EXT=.exe# Standard and Builtin help files#STD_HELP_FILES_1= intro overview helpSTD_HELP_FILES_2= assocBLT_HELP_FILES_3= builtinSTD_HELP_FILES_4= command config custom define environment expressionBLT_HELP_FILES_5= errorcodesSTD_HELP_FILES_6= file history interrupt list mat# beacuse obj is built special (due to confusion with it as# a symlink for some built environments, we treat obj specially# and call it obj.file#SPECIAL_HELP_7= obj.fileSTD_HELP_FILES_8= operator statementBLT_HELP_FILES_9= resourceSTD_HELP_FILES_10= types scriptBLT_HELP_FILES_10a= usage cscriptSTD_HELP_FILES_10b= unexpected variableBLT_HELP_FILES_11= bindings custom_cal libcalc new_custom resourceSTD_HELP_FILES_12= archiveBLT_HELP_FILES_13= bugs changesSTD_HELP_FILES_14= contrib creditBLT_HELP_FILES_14= COPYING COPYING-LGPLSTD_HELP_FILES_15= wishlist todo# These files are used in the following order to construct full#FULL_HELP_FILES= ${STD_HELP_FILES_1} ${STD_HELP_FILES_2} \		${BLT_HELP_FILES_3} ${STD_HELP_FILES_4} \		${BLT_HELP_FILES_5} ${STD_HELP_FILES_6} \		${SPECIAL_HELP_7} ${STD_HELP_FILES_8} \		${BLT_HELP_FILES_9} ${STD_HELP_FILES_10} \		${BLT_HELP_FILES_10a} ${STD_HELP_FILES_10b} \		${BLT_HELP_FILES_11} ${STD_HELP_FILES_12} \		${BLT_HELP_FILES_13} ${STD_HELP_FILES_14} \		${BLT_HELP_FILES_14} ${STD_HELP_FILES_15}# These full files are those who are not built or constrcuted#STD_HELP_FILES= ${STD_HELP_FILES_1} ${STD_HELP_FILES_2} \		${STD_HELP_FILES_4} ${STD_HELP_FILES_6} \		${STD_HELP_FILES_8} ${STD_HELP_FILES_10} \		${STD_HELP_FILES_10b} \		${STD_HELP_FILES_12} ${STD_HELP_FILES_14} \		${STD_HELP_FILES_15}# These full files are those who are built by this Makefile## Note that ${SPECIAL_HELP_7} is not included in this list# because of problems with its name.#BLT_HELP_FILES= ${BLT_HELP_FILES_3} ${BLT_HELP_FILES_5} \		${BLT_HELP_FILES_9} \		${BLT_HELP_FILES_10a} \		${BLT_HELP_FILES_11} ${BLT_HELP_FILES_13} \		${BLT_HELP_FILES_14}# This list is prodiced by the detaillist rule when no WARNINGS are detected.## Please use:##	make detaillist## to keep this list in nice sorted order and to check that these# non-special help files are under RCS control.#DETAIL_HELP= abs access acos acosh acot acoth acsc acsch address agd append \	appr arg argv arrow asec asech asin asinh assign atan atan2 atanh \	avg base base2 bernoulli bit blk blkcpy blkfree blocks bround \	btrunc calc_tty calclevel catalan ceil cfappr cfsim char cmdbuf \	cmp comb conj cos cosh cot coth count csc csch ctime delete den \	dereference det digit digits display dp epsilon errcount errmax \	errno error estr euler eval exp fact factor fclose fcnt feof ferror \	fflush fgetc fgetfield fgetfile fgetline fgets fgetstr fib files \	floor fopen forall fpathopen fprintf fputc fputs fputstr frac free \	freebernoulli freeeuler freeglobals freeredc freestatics frem freopen \	fscan fscanf fseek fsize ftell gcd gcdrem gd getenv hash head highbit \	hmean hnrmod hypot ilog ilog10 ilog2 im indices inputlevel insert \	int inverse iroot isassoc isatty isblk isconfig isdefined iserror \	iseven isfile ishash isident isint islist ismat ismult isnull isnum \	isobj isobjtype isodd isprime isptr isqrt isrand israndom isreal \	isrel issimple issq isstr istype jacobi join lcm lcmfact lfactor \	ln log lowbit ltol makelist matdim matfill matmax matmin matsum \	mattrace mattrans max md5 memsize meq min minv mmin mne mod modify \	name near newerror nextcand nextprime norm null num oldvalue ord \	param perm pfact pi pix places pmod polar poly pop popcnt pound \	power prevcand prevprime printf prompt protect ptest push putenv \	quo quomod rand randbit random randombit randperm rcin rcmul rcout \	rcpow rcsq re remove reverse rewind rm root round rsearch runtime \	saveval scale scan scanf search sec sech seed segment select sgn \	sha sha1 sin sinh size sizeof sleep sort sqrt srand srandom ssq \	str strcat strcmp strcpy strerror strlen strncmp strncpy strpos \	strprintf strscan strscanf substr sum swap system systime tail tan \	tanh test time trunc usertime version xor# This list is of files that are clones of DETAIL_HELP files.  They are# built from DETAIL_HELP files.#DETAIL_CLONE= copy# Singular files## These files are copies of their plural form.#PLURAL_FILES= bindings bugs changes errorcodes typesSINGULAR_FILES= binding bug change errorcode type# These files are found (but not built) in the distribution#DISTLIST= ${STD_HELP_FILES} ${DETAIL_HELP} ${MAKE_FILE} \	obj.file builtin.top builtin.end funclist.sed \	errorcodes.hdr errorcodes.sed# These files are used to make (but not built) a calc .a link library#CALCLIBLIST=all: ${FULL_HELP_FILES} full ${DETAIL_HELP} ${DETAIL_CLONE} \     ${SINGULAR_FILES} .all# 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#	an non-emoty else clause for every if condition.  *sigh*#.all:	${RM} -f .all	${TOUCH} .allbindings: ../cal/bindings	${RM} -f $@	${CP} ../cal/bindings $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	firesource: ../cal/README	${RM} -f $@	${CP} ../cal/README $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fichanges: ../CHANGES	${RM} -f $@	${CP} ../CHANGES $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	filibcalc: ../LIBRARY	${RM} -f $@	${SED} -e 's:$${LIBDIR}:${LIBDIR}:g' \	       -e 's:$${CALC_INCDIR}:${CALC_INCDIR}:g' < ../LIBRARY > $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -