diff options
author | harti <harti@FreeBSD.org> | 2005-05-24 13:19:40 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-05-24 13:19:40 +0000 |
commit | b6ff4ff920cf5798accf03ca1ac826688d01b4f0 (patch) | |
tree | 7493787569d0aabac9dbba1a77ce47563a66ff4d /usr.bin/make/Makefile | |
parent | 6c1f15aa0b3b5827f9587dedd80316843096497c (diff) | |
download | FreeBSD-src-b6ff4ff920cf5798accf03ca1ac826688d01b4f0.zip FreeBSD-src-b6ff4ff920cf5798accf03ca1ac826688d01b4f0.tar.gz |
Use the name of the default shell instead of a numeric index to select
the default shell.
Idea from: DragonFlyBSD
Diffstat (limited to 'usr.bin/make/Makefile')
-rw-r--r-- | usr.bin/make/Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index 40903eb..3cb53693 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -98,12 +98,8 @@ hash: # allow you to shoot yourself in the foot if you want to :-) MAKE_SHELL?= sh -.if ${MAKE_SHELL} == "csh" -CFLAGS+= -DDEFSHELL=0 -.elif ${MAKE_SHELL} == "sh" -CFLAGS+= -DDEFSHELL=1 -.elif ${MAKE_SHELL} == "ksh" -CFLAGS+= -DDEFSHELL=2 +.if ${MAKE_SHELL} == "csh" || ${MAKE_SHELL} == "sh" || ${MAKE_SHELL} == "ksh" +CFLAGS+= -DDEFSHELLNAME=\"${MAKE_SHELL}\" .else .error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"." .endif |