From: Eric Andersen Date: Thu, 26 Apr 2001 23:29:10 +0000 (-0000) Subject: Be a bit more sneaky about the sh.c symlink so you don't need to X-Git-Tag: 0_52~279 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0081466925ec6224eae13f0702f2df719237de6e;p=oweals%2Fbusybox.git Be a bit more sneaky about the sh.c symlink so you don't need to do a mke clean for it to happen. -Erik --- diff --git a/Makefile b/Makefile index 5a62cb0ef..3408770ed 100644 --- a/Makefile +++ b/Makefile @@ -268,10 +268,12 @@ CFLAGS += $(CFLAGS_EXTRA) .EXPORT_ALL_VARIABLES: -all: applet_source_list busybox busybox.links doc +all: sh_link applet_source_list busybox busybox.links doc + +sh_link: + @if [ ! -L sh.c ] ; then ln -s lash.c sh.c ; fi applet_source_list: busybox.sh Config.h - if [ ! -L sh.c ] ; then ln -s lash.c sh.c ; fi (echo -n "APPLET_SOURCES := "; $(SHELL) $^ $(BB_SRC_DIR)) > $@ doc: olddoc