diff options
Diffstat (limited to 'tools/update/Makefile.in')
-rw-r--r-- | tools/update/Makefile.in | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/update/Makefile.in b/tools/update/Makefile.in new file mode 100644 index 0000000000..200a2b5c6a --- /dev/null +++ b/tools/update/Makefile.in @@ -0,0 +1,37 @@ +# +# $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@ + +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} |