From e1d9633e20d8f3153602249441df916cd31f303f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 24 Aug 2005 00:41:52 +0000 Subject: 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 $@' --- scripts/config/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/config') 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 -- cgit v1.2.3