forked from Imagelibrary/rtems
This patch fixes a nasty problem with build-tools/Makefile.am:
When using install-sh instead of /usr/bin/install, only the first file
gets installed during the preinstall stage.
40 lines
863 B
Makefile
40 lines
863 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
|
|
|
|
bin_PROGRAMS=cklength eolstrip packhex unhex
|
|
|
|
cklength_SOURCES = cklength.c
|
|
eolstrip_SOURCES = eolstrip.c
|
|
packhex_SOURCES = packhex.c
|
|
unhex_SOURCES = unhex.c
|
|
|
|
bin_SCRIPTS=\
|
|
install-if-change \
|
|
lock-directory \
|
|
unlock-directory \
|
|
rcs-clean
|
|
|
|
noinst_SCRIPTS = search-id.sh
|
|
|
|
#
|
|
# HACK: Install to build directory
|
|
#
|
|
install-exec-local: $(bin_PROGRAMS) $(bin_SCRIPTS)
|
|
if test -n "${RTEMS_BSP}"; then \
|
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
|
|
for i in $(bin_SCRIPTS); do \
|
|
$(INSTALL_SCRIPT) $$i $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
|
|
done; \
|
|
for i in $(bin_PROGRAMS); do \
|
|
$(INSTALL_PROGRAM) $$i $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
|
|
done; \
|
|
fi
|
|
|
|
preinstall: install-exec-local
|
|
|
|
include $(top_srcdir)/../../automake/local.am
|