forked from Imagelibrary/rtems
> 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).
46 lines
808 B
Makefile
46 lines
808 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
@SET_MAKE@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
RTEMS_ROOT = @top_srcdir@
|
|
PROJECT_ROOT = @PROJECT_ROOT@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
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
|
|
|
|
BUILD_PGMS = update
|
|
ifneq (@PERL@,)
|
|
BUILD_PGMS += word-replace
|
|
endif
|
|
|
|
PGMS = $(BUILD_PGMS)
|
|
|
|
CLEAN_ADDITIONS += $(BUILD_PGMS)
|
|
|
|
MISC_SUPPORT=310_to_320_list
|
|
|
|
INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)
|
|
INSTALLED_DATA=$(MISC_SUPPORT:%=$(DESTDIR)/%)
|
|
|
|
all: $(PGMS)
|
|
|
|
$(DESTDIR):
|
|
@top_srcdir@/mkinstalldirs $@
|
|
|
|
$(INSTALLED_PGMS): $(PGMS)
|
|
$(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)
|
|
|
|
$(INSTALLED_DATA): $(MISC_SUPPORT)
|
|
$(INSTALL) $(INSTDATAFLAGS) $^ $(DESTDIR)
|
|
|
|
install: $(DESTDIR) $(INSTALLED_PGMS) $(INSTALLED_DATA)
|
|
|