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

📄 makefile

📁 Calc Software Package for Number Calc
💻
📖 第 1 页 / 共 2 页
字号:
	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fibugs: ../BUGS	${RM} -f $@	${CP} ../BUGS $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fierrorcodes: ../calcerr.h errorcodes.hdr errorcodes.sed	${RM} -f $@	${CAT} errorcodes.hdr > $@	${SED} -n -f errorcodes.sed < ../calcerr.h >> $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fiusage: ../calc.usage	${RM} -f $@	${CP} ../calc.usage $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fi../calc.usage:	(cd ..; $(MAKE) calc.usage)custom_cal: ../custom/CUSTOM_CAL	${RM} -f $@	${CP} ../custom/CUSTOM_CAL $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	finew_custom: ../custom/HOW_TO_ADD	${RM} -f $@	${CP} ../custom/HOW_TO_ADD $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	ficopy: blkcpy	${RM} -f $@	${CP} blkcpy $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fiCOPYING: ../COPYING	${RM} -f $@	${CP} ../COPYING $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fiCOPYING-LGPL: ../COPYING-LGPL	${RM} -f $@	${CP} ../COPYING-LGPL $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	ficscript: ../cscript/README	${RM} -f $@	${CP} ../cscript/README $@	${CHMOD} 0444 $@	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fi../cscript/README: ../cscript/README.src	${Q} echo "forming cscript/README"	-${Q} ${RM} -f $@	(cd ../cscript; $(MAKE) README)full: ${FULL_HELP_FILES} ${MAKE_FILE}	${Q} echo "forming full"	-${Q} ${RM} -f $@	-${Q} for i in ${FULL_HELP_FILES}; do \	    if [ Xintro != X"$$i" ]; then \		echo ""; \	    else \		${TRUE}; \	    fi; \	    if [ Xobj.file = X"$$i" ]; then \		j=obj; \	    else \		j=$$i; \	    fi; \	    echo "*************"; \	    echo "* $$j"; \	    echo "*************"; \	    echo ""; \	    ${CAT} $$i; \	done > $@	${Q} echo "full formed"	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fi# Singular files are the same files as their plural form.#${SINGULAR_FILES}: ${PLURAL_FILES}	${Q} for i in ${SINGULAR_FILES} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		echo "${RM} -f $${i}"; \		${RM} -f $${i}; \		echo "${CP} $${i}s $${i}"; \		${CP} $${i}s $${i}; \	    fi; \	done	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/SINGULAR_FILES =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fi# Form the builtin file## We ave a "chicken-and-egg" problem.  We want the builtn help file to# accurately reflect the function list.	 It would be nice if we could# just execute calc show builtin, but calc may not have been built or# buildable at this point.  The hack-a-round used is to convert ../func.c# into a standalone program that generates a suitable function list# that is standwiched between the top and bottom builtin help text.## We form funclist.c by sedding out unwanted stuff from builtins table,# converting NUMBER* and VALUE into harmless types and converting# the showbuiltins() function into main().  Combined with the -DFUNCLIST# we will avoid all of the complex calc types, macros and defines and# be left with just main() and a mininal builtins table.## Building funclist.o a portable fashion is ugly because some systems# do not treat -I.. correctly!#builtin: builtin.top builtin.end ../func.c funclist.sed	${Q} echo "forming builtin help file"	-${Q} ${RM} -f funclist.c	${Q} ${SED} -n -f funclist.sed ../func.c > funclist.c	-${Q} ${RM} -f funclist.o funclist${EXT}	${Q} ${LCC} ${ICFLAGS} -DFUNCLIST -I/usr/include \	    -I.. funclist.c -c 2>/dev/null	${Q} ${LCC} ${ILDFLAGS} funclist.o -o funclist${EXT}	-${Q} ${RM} -f builtin	${Q} ${CAT} builtin.top > builtin	${Q} ./funclist${EXT} | \	    ${SED} -e 's/^/	/' -e 's/[	 ][	 ]*$$//' >> builtin	${Q} ${CAT} builtin.end >> builtin	${Q} echo "builtin help file formed"	-@if [ -z "${Q}" ]; then \	    echo ''; \	    echo '=-=-= skipping the ${CAT} of help/$@ =-=-='; \	    echo ''; \	else \	    ${TRUE}; \	fi#### File list generation.	 You can ignore this section.### We will form the names of source files as if they were in a# sub-directory called calc/help.###distlist: ${DISTLIST}	${Q} for i in ${DISTLIST} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		echo help/$$i; \	    fi; \	done | LANG=C ${SORT}distdir:	${Q} echo helpcalcliblist:	${Q} for i in ${CALCLIBLIST} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		echo help/$$i; \	    fi; \	done# The BSDI cdrom makefile expects all help files to be pre-built.  This rule# creats these fils so that the release can be shipped off to BSDI.  You can# ignore this rule.#bsdi: all	${RM} -f obj	${CP} obj.file obj# These next rule help me form the ${DETAIL_HELP} makefile variables above.#detaillist:	${Q} -(echo "xxxxx"; \	   for i in ${DETAIL_HELP} /dev/null; do \		if [ X"$$i" != X"/dev/null" ]; then \		    if [ ! -f RCS/$$i,v ]; then \			echo "WARNING: $$i not under RCS control" 1>&2; \		    else \			echo $$i; \		    fi; \		fi; \	done | LANG=C ${SORT}) | ${FMT} -70 | \	    ${SED} -e '1s/xxxxx/DETAIL_HELP=/' -e '2,$$s/^/	/' \		   -e 's/$$/ \\/' -e '$$s/ \\$$//'#### rpm rules###echo_inst_files:	${Q} for i in ${STD_HELP_FILES} full ${BLT_HELP_FILES} \		  builtin ${DETAIL_HELP} ${SINGULAR_FILES} /dev/null; do \	    if [ X"$$i" != X"/dev/null" ]; then \		echo __file__ ${HELPDIR}/$$i; \	    fi; \	done	${Q} echo __file__ ${HELPDIR}/obj#### Utility rules###clean:	${RM} -f obj mkbuiltin funclist.c funclist.o funclist${EXT}	${RM} -f COPYING COPYING-LGPLclobber:	${RM} -f ${BLT_HELP_FILES} full .all calc	${RM} -f obj mkbuiltin funclist.c funclist.o funclist${EXT}	${RM} -f COPYING COPYING-LGPL	${RM} -f ${SINGULAR_FILES} ${DETAIL_CLONE}# install everything## NOTE: Keep the uninstall rule in reverse order to the install rule#install: all	-${Q} if [ ! -d ${T}${CALC_SHAREDIR} ]; then \	    echo ${MKDIR} ${T}${CALC_SHAREDIR}; \	    ${MKDIR} ${T}${CALC_SHAREDIR}; \	    if [ ! -d "${T}${CALC_SHAREDIR}" ]; then \		echo ${MKDIR} -p "${T}${CALC_SHAREDIR}"; \		${MKDIR} -p "${T}${CALC_SHAREDIR}"; \	    fi; \	    echo ${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \	    ${CHMOD} 0755 ${T}${CALC_SHAREDIR}; \	else \	    ${TRUE}; \	fi	-${Q} if [ ! -d ${T}${HELPDIR} ]; then \	    echo ${MKDIR} ${T}${HELPDIR}; \	    ${MKDIR} ${T}${HELPDIR}; \	    if [ ! -d "${T}${HELPDIR}" ]; then \		echo ${MKDIR} -p "${T}${HELPDIR}"; \		${MKDIR} -p "${T}${HELPDIR}"; \	    fi; \	    echo ${CHMOD} 0755 ${T}${HELPDIR}; \	    ${CHMOD} 0755 ${T}${HELPDIR}; \	else \	    ${TRUE}; \	fi	-${Q} for i in ${STD_HELP_FILES} ${BLT_HELP_FILES} builtin \		  full ${DETAIL_HELP} ${SINGULAR_FILES} /dev/null; do \	    if [ "$$i" = "/dev/null" ]; then \		continue; \	    fi; \	    if ${CMP} -s $$i ${T}${HELPDIR}/$$i; then \		${TRUE}; \	    else \		${RM} -f ${T}${HELPDIR}/$$i.new; \		${CP} -f $$i ${T}${HELPDIR}/$$i.new; \		${CHMOD} 0444 ${T}${HELPDIR}/$$i.new; \		${MV} -f ${T}${HELPDIR}/$$i.new ${T}${HELPDIR}/$$i; \		echo "installed ${T}${HELPDIR}/$$i"; \	    fi; \	done	-${Q} if ${CMP} -s obj.file ${T}${HELPDIR}/obj; then \	    ${TRUE}; \	else \	    ${RM} -f ${T}${HELPDIR}/obj.new; \	    ${CP} -f obj.file ${T}${HELPDIR}/obj.new; \	    ${CHMOD} 0444 ${T}${HELPDIR}/obj.new; \	    ${MV} -f ${T}${HELPDIR}/obj.new ${T}${HELPDIR}/obj; \	    echo "installed ${T}${HELPDIR}/obj"; \	fi# Try to remove everything that was installed## NOTE: Keep the uninstall rule in reverse order to the install rule#uninstall:	-${Q} if [ -f "${T}${HELPDIR}/obj" ]; then \	    ${RM} -f "${T}${HELPDIR}/obj"; \	    if [ -f "${T}${HELPDIR}/obj" ]; then \		echo "cannot uninstall ${T}${HELPDIR}/obj"; \	    else \		echo "uninstalled ${T}${HELPDIR}/obj"; \	    fi; \	fi	-${Q} for i in ${SINGULAR_FILES} ${DETAIL_HELP} full builtin \	    ${BLT_HELP_FILES} ${STD_HELP_FILES} /dev/null; do \	    if [ "$$i" = "/dev/null" ]; then \		continue; \	    fi; \	    if [ -f "${T}${HELPDIR}/$$i" ]; then \	    	${RM} -f "${T}${HELPDIR}/$$i"; \		if [ -f "${T}${HELPDIR}/$$i" ]; then \		   echo "cannot uninstall ${T}${HELPDIR}/$$i"; \		else \		   echo "uninstalled ${T}${HELPDIR}/$$i"; \		fi; \	    fi; \	done	-${Q} for i in ${HELPDIR} ${CALC_SHAREDIR}; do \	    if [ -d "${T}$$i" ]; then \		${RMDIR} "${T}$$i" 2>/dev/null; \		echo "cleaned up ${T}$$i"; \	    fi; \	done

⌨️ 快捷键说明

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