# # $Id$ # @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)/tests # We use the generic difftest PGMS=runtest looptest semdump shmdump INSTALLED=$(PGMS:%=$(DESTDIR)/%) all: $(DESTDIR) $(PGMS) install install: $(INSTALLED) # Install the program, replacing #!KSHELL with $(KSH) # and first line #!SHELL with $(SHELL) $(DESTDIR)/%: % -$(RM) $@.old -$(MV) $@ $@.old >/dev/null 2>&1 $(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@ $(CHMOD) 0555 $@