summaryrefslogtreecommitdiffstats
path: root/tools/update/Makefile.in
blob: e4ba479e1b16d285219485f28c7a6c60879d24bb (plain) (blame)
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
36
37
38
39
40
#
# $Id$
#
# NOTE: of course we can't use any of these tools
#   in this Makefile.  Most notably: install-if-change
#

@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
RTEMS_ROOT = @RTEMS_ROOT@
PROJECT_ROOT = @PROJECT_ROOT@
RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg

include $(RTEMS_CUSTOM)
include $(RTEMS_ROOT)/make/leaf.cfg

DESTDIR=$(PROJECT_RELEASE)/update-tools

PGMS=update word-replace
MISC_SUPPORT=310_to_320_list

INSTALL_LIST= $(PGMS) $(MISC_SUPPORT)

INSTALLED=$(INSTALL_LIST:%=$(DESTDIR)/%)

all:  $(DESTDIR)
	echo $(DESTDIR)

$(DESTDIR):
	[ -d $@ ] || $(MKDIR) $@

install:  $(INSTALLED)

# Install the program
$(DESTDIR)/%: %
	$(make-script)
	$(INSTALL)  -m 555 $(PERL_PGMS) ${DESTDIR}
	$(INSTALL)  -m 444 $(srcdir)/$(MISC_SUPPORT) ${DESTDIR}