Changeset View
Changeset View
Standalone View
Standalone View
head/bin/csh/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93 | # @(#)Makefile 8.1 (Berkeley) 5/31/93 | ||||
# | # | ||||
# C Shell with process control; VM/UNIX VAX Makefile | # C Shell with process control; VM/UNIX VAX Makefile | ||||
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria | # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria | ||||
# | # | ||||
# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. | # To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
CONFGROUPS= ETC ROOT | CONFGROUPS= ETC ROOT | ||||
ETC= csh.cshrc csh.login csh.logout | ETC= csh.cshrc csh.login csh.logout | ||||
ROOT= dot.login | ROOT= dot.cshrc dot.login | ||||
ROOTDIR= /root | ROOTDIR= /root | ||||
ROOTNAME_dot.cshrc= .cshrc | |||||
ROOTNAME_dot.login= .login | ROOTNAME_dot.login= .login | ||||
PACKAGE=runtime | PACKAGE=runtime | ||||
TCSHDIR= ${SRCTOP}/contrib/tcsh | TCSHDIR= ${SRCTOP}/contrib/tcsh | ||||
.PATH: ${TCSHDIR} | .PATH: ${TCSHDIR} | ||||
PROG= csh | PROG= csh | ||||
.if defined(RESCUE) | .if defined(RESCUE) | ||||
DFLAGS= -D_PATH_TCSHELL='"/rescue/${PROG}"' | DFLAGS= -D_PATH_TCSHELL='"/rescue/${PROG}"' | ||||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h ${BUILD_TOOLS_META} | ||||
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | ||||
@echo '#ifndef _h_tc_const' >> ${.TARGET} | @echo '#ifndef _h_tc_const' >> ${.TARGET} | ||||
@echo '#define _h_tc_const' >> ${.TARGET} | @echo '#define _h_tc_const' >> ${.TARGET} | ||||
${CC:N${CCACHE_BIN}} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \ | ${CC:N${CCACHE_BIN}} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \ | ||||
grep 'Char STR' | \ | grep 'Char STR' | \ | ||||
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ | sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ | ||||
sort >> ${.TARGET} | sort >> ${.TARGET} | ||||
@echo '#endif /* _h_tc_const */' >> ${.TARGET} | @echo '#endif /* _h_tc_const */' >> ${.TARGET} | ||||
beforeinstallconfig: | |||||
rm -f ${DESTDIR}/.cshrc | |||||
afterinstallconfig: | |||||
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc | |||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |