diff options
author | Rob Landley <rob@landley.net> | 2005-08-24 00:41:52 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-08-24 00:41:52 +0000 |
commit | e1d9633e20d8f3153602249441df916cd31f303f (patch) | |
tree | 0e9ce3743640ad5f49669e3e15e8d5a04abf1a3c /scripts/config/Makefile | |
parent | a937640bff9ad496e5c41d93918bbc7e51b2068e (diff) |
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/config/Makefile')
-rw-r--r-- | scripts/config/Makefile | 4 |
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 |