summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems/inline/rtems/rtems/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/rtems/inline/rtems/rtems/Makefile.in')
-rw-r--r--c/src/exec/rtems/inline/rtems/rtems/Makefile.in34
1 files changed, 21 insertions, 13 deletions
diff --git a/c/src/exec/rtems/inline/rtems/rtems/Makefile.in b/c/src/exec/rtems/inline/rtems/rtems/Makefile.in
index f3b56f9330..fff81d3c22 100644
--- a/c/src/exec/rtems/inline/rtems/rtems/Makefile.in
+++ b/c/src/exec/rtems/inline/rtems/rtems/Makefile.in
@@ -5,25 +5,31 @@
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
-top_builddir = ../../../../../../..
-subdir = c/src/exec/rtems/inline/rtems/rtems
+top_builddir = ../../../..
+subdir = rtems/inline/rtems/rtems
-INSTALL = @INSTALL@
-
-RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
+RTEMS_ROOT = @RTEMS_ROOT@
PROJECT_ROOT = @PROJECT_ROOT@
VPATH = @srcdir@
-I_PIECES=asr attr dpmem event eventset message modes options \
- part ratemon region sem status support tasks timer
-I_FILES=$(I_PIECES:%=$(srcdir)/%.inl)
+I_PIECES = asr attr dpmem event eventset message modes options part ratemon \
+ region sem status support tasks timer
+I_FILES = $(I_PIECES:%=$(srcdir)/%.inl)
-SRCS=$(I_FILES)
+SRCS = $(I_FILES)
-include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(RTEMS_ROOT)/make/lib.cfg
+INSTALL_CHANGE = @INSTALL_CHANGE@
+mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
+
+INSTALLDIRS = $(PROJECT_INCLUDE)/rtems/rtems
+
+$(INSTALLDIRS):
+ @$(mkinstalldirs) $(INSTALLDIRS)
+
#
# Add your list of files to delete here. The config files
# already know how to delete some stuff, so you may want
@@ -34,9 +40,11 @@ include $(RTEMS_ROOT)/make/lib.cfg
CLEAN_ADDITIONS += $(LIB)
CLOBBER_ADDITIONS +=
-all: $(SRCS)
- $(INSTALL_CHANGE) -m 444 ${I_FILES} $(PROJECT_INCLUDE)/rtems/rtems
+all: preinstall
+
+preinstall: $(INSTALLDIRS) $(I_FILES)
+ @$(INSTALL_CHANGE) -m 644 $(I_FILES) $(PROJECT_INCLUDE)/rtems/rtems
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status