summaryrefslogtreecommitdiffstats
path: root/tools/update/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/update/Makefile.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/update/Makefile.in b/tools/update/Makefile.in
index 2bd9896aa6..91a9ebcfb6 100644
--- a/tools/update/Makefile.in
+++ b/tools/update/Makefile.in
@@ -4,15 +4,19 @@
@SET_MAKE@
srcdir = @srcdir@
-VPATH = @srcdir@
-RTEMS_ROOT = @top_srcdir@
-PROJECT_ROOT = @PROJECT_ROOT@
+top_srcdir = @top_srcdir@
+top_builddir = ../..
+subdir = c/update-tools
INSTALL = @INSTALL@
+RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
+PROJECT_ROOT = @PROJECT_ROOT@
+
+VPATH = @srcdir@
+
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg
-include $(RTEMS_ROOT)/make/rtems.cfg
DESTDIR=$(PROJECT_RELEASE)/update-tools
@@ -43,3 +47,6 @@ $(INSTALLED_DATA): $(MISC_SUPPORT)
install: $(DESTDIR) $(INSTALLED_PGMS) $(INSTALLED_DATA)
+%: $(srcdir)/%.in $(top_builddir)/config.status
+ cd $(top_builddir) \
+ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status