summaryrefslogtreecommitdiffstats
path: root/tools/build/Makefile.am
blob: e7c73b923db642c39ec1251f9e9a338aeeef2298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# $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; \
	  $(INSTALL_SCRIPT) $(bin_SCRIPTS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
	  $(INSTALL_PROGRAM) $(bin_PROGRAMS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
	fi

preinstall: install-exec-local

include $(top_srcdir)/../../automake/local.am