aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-08-24 00:41:52 +0000
committerRob Landley <rob@landley.net>2005-08-24 00:41:52 +0000
commite1d9633e20d8f3153602249441df916cd31f303f (patch)
tree0e9ce3743640ad5f49669e3e15e8d5a04abf1a3c /scripts
parenta937640bff9ad496e5c41d93918bbc7e51b2068e (diff)
downloadbusybox-e1d9633e20d8f3153602249441df916cd31f303f.tar.gz
Bernhard Fischer submitted a couple of Makefile patches:
- Fix building out-of-tree - remove duplicate rule in toplevel Makefile - peruse make's builtin notion of `dirname $@'
Diffstat (limited to 'scripts')
-rw-r--r--scripts/config/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/config/Makefile b/scripts/config/Makefile
index 3c4669f8c..4d95ce078 100644
--- a/scripts/config/Makefile
+++ b/scripts/config/Makefile
@@ -5,7 +5,7 @@
top_srcdir=../..
top_builddir=../..
srcdir=$(top_srcdir)/scripts/config
-include $(top_builddir)/Rules.mak
+include $(top_srcdir)/Rules.mak
all: ncurses conf mconf
@@ -41,6 +41,7 @@ MCONF_SRC = mconf.c
LXD_SRC = lxdialog/checklist.c lxdialog/menubox.c lxdialog/textbox.c \
lxdialog/yesno.c lxdialog/inputbox.c lxdialog/util.c \
lxdialog/msgbox.c
+
SHARED_SRC = zconf.tab.c
SHARED_DEPS := $(srcdir)/lkc.h $(srcdir)/lkc_proto.h \
lkc_defs.h $(srcdir)/expr.h zconf.tab.h
@@ -58,6 +59,7 @@ $(CONF_OBJS): %.o : $(srcdir)/%.c $(SHARED_DEPS)
$(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@
$(MCONF_OBJS): %.o : $(srcdir)/%.c $(SHARED_DEPS)
+ @[ -d $(@D) ] || mkdir -v $(@D)
$(HOSTCC) $(HOSTCFLAGS) $(HOSTNCURSES) -I. -c $< -o $@
lkc_defs.h: $(srcdir)/lkc_proto.h