Changeset View
Changeset View
Standalone View
Standalone View
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 | |||||
ETC= csh.cshrc csh.login csh.logout | |||||
ROOT= dot.cshrc | |||||
ROOTDIR= /root | |||||
ROOTNAME= .cshrc | |||||
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}"' | ||||
.else | .else | ||||
Show All 20 Lines | |||||
MLINKS= csh.1 tcsh.1 | MLINKS= csh.1 tcsh.1 | ||||
# MLINKS for Shell built in commands for which there are no userland | # MLINKS for Shell built in commands for which there are no userland | ||||
# utilities of the same name are handled with the associated manpage, | # utilities of the same name are handled with the associated manpage, | ||||
# builtin.1 in share/man/man1/. | # builtin.1 in share/man/man1/. | ||||
LIBADD= termcapw crypt | LIBADD= termcapw crypt | ||||
LINKS= ${BINDIR}/csh ${BINDIR}/tcsh | LINKS= ${BINDIR}/csh ${BINDIR}/tcsh \ | ||||
/root/.cshrc /.cshrc | |||||
will: `bsd.links.mk` prepends ${DESTDIR} to both source and target. | |||||
CLEANFILES= ${GENHDRS} gethost csh.1 | CLEANFILES= ${GENHDRS} gethost csh.1 | ||||
.if ${MK_EXAMPLES} != "no" | .if ${MK_EXAMPLES} != "no" | ||||
FILESDIR= ${SHAREDIR}/examples/tcsh | FILESDIR= ${SHAREDIR}/examples/tcsh | ||||
FILES= complete.tcsh csh-mode.el | FILES= complete.tcsh csh-mode.el | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 86 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} | ||||
beforeinstall: | |||||
rm -f ${DESTDIR}/.cshrc | |||||
afterinstallconfig: | |||||
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd | |||||
pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd | |||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |
bsd.links.mk prepends ${DESTDIR} to both source and target.