extfs: documentation for the tester.
[midnight-commander.git] / tests / src / extfs-helpers-listcmd / Makefile.am
blob8c6105bf721094d587a663c56c834e35836e9a91
1 PACKAGE_STRING = "/src/extfs-helpers-listcmd"
3 AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
5 # This lets mc_parse_ls_l.c override MC's message() without the linker
6 # complaining about multiple definitions.
7 AM_LDFLAGS = @TESTS_LDFLAGS@
9 LIBS = $(top_builddir)/lib/libmc.la
11 # Programs/scripts to build on 'make check'.
12 check_PROGRAMS = mc_parse_ls_l
13 check_SCRIPTS = run
15 # Tests to run on 'make check'
16 TESTS = run
18 # On 'make clean', delete 'run' as well.
19 CLEANFILES = run
21 mc_parse_ls_l_SOURCES = \
22         mc_parse_ls_l.c
24 data_files_to_distribute = \
25         data/dummy
27 EXTRA_DIST = mc_xcat test_all $(data_files_to_distribute)
29 run:
30         echo '#!/bin/sh' > $@
31         echo >> $@
32         echo '# This script is an easy way to launch the "test_all" script' >> $@
33         echo '# with all the required arguments.' >> $@
34         echo '#' >> $@
35         echo '# Run this script with "--help" to learn more.' >> $@
36         echo >> $@
37         echo '# Where to find mc_parse_ls_l and mc_xcat, respectively.' >> $@
38         echo 'PATH="$(abs_builddir):$(abs_srcdir):$$PATH"' >> $@
39         echo >> $@
40 # The 'abs_' isn't mandatory. It lets you move this script out of the build tree.
41         echo '"$(abs_srcdir)"/test_all "$$@" \' >> $@
42         echo '  --data-dir "$(abs_srcdir)/data" \' >> $@
43 # Before installation, some helpers are in the build tree, some in the src tree.
44         echo '  --helpers-dir "$(abs_top_builddir)/src/vfs/extfs/helpers" \' >> $@
45         echo '  --helpers-dir "$(abs_top_srcdir)/src/vfs/extfs/helpers"' >> $@
46         chmod +x $@
47 # (We can alternatively create run from a run.in template
48 # with 'AC_CONFIG_FILES[run, chmod +x run]'.)
51 # Documentation
54 doc: README.html
56 # (Thanks to VPATH we don't need to write "$(srcdir)/README". doc/hlp/Makefile.am needlessly does this.)
57 README.html: README
58         pandoc --include-in-header=$(srcdir)/README.css.inc -N --old-dashes --toc --standalone -o $@ $<
60 EXTRA_DIST += README.css.inc
61 CLEANFILES += README.html