forked from Imagelibrary/rtems
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
if TARTESTS
|
|
rtems_tests_PROGRAMS = tar02
|
|
tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
|
|
initial_filesystem_tar.c initial_filesystem_tar.h
|
|
|
|
BUILT_SOURCES = initial_filesystem_tar.c initial_filesystem_tar.h
|
|
|
|
dist_rtems_tests_DATA = tar02.scn
|
|
dist_rtems_tests_DATA += tar02.doc
|
|
endif
|
|
|
|
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
|
include $(top_srcdir)/../automake/compile.am
|
|
include $(top_srcdir)/../automake/leaf.am
|
|
|
|
if TARTESTS
|
|
AM_CPPFLAGS += -I$(top_srcdir)/include
|
|
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
|
AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
|
|
|
|
LINK_OBJS = $(tar02_OBJECTS)
|
|
LINK_LIBS = $(tar02_LDLIBS)
|
|
|
|
tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES)
|
|
@rm -f tar02$(EXEEXT)
|
|
$(make-exe)
|
|
|
|
initial_filesystem_tar.c: initial_filesystem.tar
|
|
$(BIN2C) -C initial_filesystem.tar initial_filesystem_tar
|
|
CLEANFILES += initial_filesystem_tar.c
|
|
|
|
initial_filesystem_tar.h: initial_filesystem.tar
|
|
$(BIN2C) -H initial_filesystem.tar initial_filesystem_tar
|
|
CLEANFILES += initial_filesystem_tar.h
|
|
|
|
initial_filesystem.tar:
|
|
rm -rf initial_fs
|
|
$(MKDIR_P) initial_fs/home
|
|
(echo "This is a test of loading an RTEMS filesystem from an" ; \
|
|
echo "initial tar image.") >initial_fs/home/test_file
|
|
(cd initial_fs; \
|
|
$(LN_S) home/test_file symlink; \
|
|
$(PAX) -w -f ../initial_filesystem.tar home symlink)
|
|
CLEANFILES += initial_filesystem.tar
|
|
endif TARTESTS
|
|
|
|
clean-local:
|
|
-rm -rf initial_fs
|
|
|
|
include $(top_srcdir)/../automake/local.am
|