source: rtems/make/Makefile.in @ 4d20133

4.104.114.84.95
Last change on this file since 4d20133 was 8548fe0, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 18:36:05

Part of the automake VI patch from Ralf Corsepius <corsepiu@…>:

5) rtems-rc-19990202-1.diff/reorg-install.sh

reorg-install.sh fixes a Makefile variable name clash of RTEMS
configuration files and automake/autoconf standards.
Until now, RTEMS used $(INSTALL) for install-if-change. Automake and
autoconf use $(INSTALL) for a bsd-compatible install. As
install-if-change and bsd-install are not compatible, I renamed all
references to install-if-changed to $(INSTALL_CHANGED) and used
$(INSTALL) for bsd-install (==automake/autoconf standard). When
automake will be introduced install-if-change will probably be replaced
by $(INSTALL) and therefore will slowly vanish. For the moment, this
patch fixes a very nasty problem which prevents adding any automake file
until now (There are still more).

  • Property mode set to 100644
File size: 2.6 KB
Line 
1#
2#  $Id$
3#
4# Not strictly necessary to pull in this stuff.  But it helps with
5#  working with the templates and poking around.
6#
7
8@SET_MAKE@
9srcdir = @srcdir@
10VPATH = @srcdir@
11RTEMS_ROOT = @top_srcdir@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14INSTALL = @INSTALL@
15
16include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
17include $(RTEMS_ROOT)/make/leaf.cfg
18
19CLEAN_ADDITIONS +=
20CLOBBER_ADDITIONS +=
21
22# NOTE: No need to prepend $(srcdir) to file names,
23#       VPATH handles the paths for us.
24# NOTE: Only the files really need get installed.
25
26GENERIC_FILES := host.cfg target.cfg
27
28MAKEFILES := README \
29        directory.cfg leaf.cfg \
30        lib.cfg main.cfg
31
32# NOTE: Use the wildcard rule to install all custom files
33# CUSTOM_FILES := $(wildcard $(srcdir)/custom/*.cfg)
34
35# NOTE: This should be sufficient, but may fail for some BSPS:
36#       Get all custom files for the BSP family, they may depend on each other
37#CUSTOM_FILES := custom/default.cfg $(patsubst %,custom/%.cfg, posix)
38
39#  This version of the rule is pretty ugly but I think it works ALL the time.
40#      + Figure out what this BSP.cfg includes
41#      + Make those files have the correct relative path.
42#      + Now fix $(RTEMS_HOST) to the real host name
43CUSTOM_FILES := custom/default.cfg custom/$(RTEMS_BSP).cfg \
44   $(shell grep "^include.*make/custom" $(srcdir)/custom/$(RTEMS_BSP).cfg | \
45    sed -e 's/^.*make\///' | sed -e s/\\$$\(RTEMS_HOST\)/${RTEMS_HOST}/)
46
47# NOTE: Use the wildcard rule to install all compiler files
48# COMPILER_FILES := $(wildcard $(srcdir)/compilers/*.cfg)
49COMPILER_FILES := $(CONFIG.$(TARGET_ARCH).CC) $(CONFIG.$(HOST_ARCH).CC)
50
51# NOTE: Don't use a wildcard rule here, otherwise Templates/Makefile.inc
52#       will be installed, too
53TEMPLATE_FILES := \
54        Templates/Makefile.dir \
55        Templates/Makefile.leaf \
56        Templates/Makefile.lib
57
58get: retrieve
59
60all:
61
62$(prefix)/rtems:
63        @top_srcdir@/mkinstalldirs $@
64
65install: $(prefix)/rtems \
66        $(prefix)/rtems/make \
67        $(prefix)/rtems/make/compilers \
68        $(prefix)/rtems/make/custom \
69        $(prefix)/rtems/make/Templates \
70        install_files
71
72$(prefix)/rtems/make:
73        @top_srcdir@/mkinstalldirs $@
74
75install_files:: $(GENERIC_FILES) $(MAKEFILES)
76        $(INSTALL) $(INSTDATAFLAGS) $^ \
77        $(prefix)/rtems/make
78
79$(prefix)/rtems/make/compilers:
80        @top_srcdir@/mkinstalldirs $@
81
82install_files:: $(COMPILER_FILES)
83        $(INSTALL) $(INSTDATAFLAGS) $^ \
84        $(prefix)/rtems/make/compilers
85
86$(prefix)/rtems/make/custom:
87        @top_srcdir@/mkinstalldirs $@
88
89install_files:: $(CUSTOM_FILES)
90        $(INSTALL) $(INSTDATAFLAGS) $^ \
91        $(prefix)/rtems/make/custom
92
93$(prefix)/rtems/make/Templates:
94        @top_srcdir@/mkinstalldirs $@
95
96
97install_files:: $(TEMPLATE_FILES)
98        $(INSTALL) $(INSTDATAFLAGS) $^ \
99        $(prefix)/rtems/make/Templates
Note: See TracBrowser for help on using the repository browser.