mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-04 07:24:22 +08:00
4a9222e0c2
`make maintainer-clean; ./configure; make check' works.
33 lines
838 B
Makefile
33 lines
838 B
Makefile
## Process this file with automake to produce Makefile.in -*-Makefile-*-.
|
|
|
|
##test-files-begin
|
|
##test-files-end
|
|
|
|
EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
|
|
noinst_SCRIPTS = $x-tests
|
|
|
|
PERL = @PERL@
|
|
editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'
|
|
|
|
TESTS = $x-tests
|
|
|
|
mk_script = $(srcdir)/../mk-script
|
|
$(srcdir)/$x-tests: $(mk_script) Test.pm
|
|
$(PERL) -I. -w -- $(mk_script) ../../src/$x > $@.n
|
|
mv $@.n $@
|
|
chmod 755 $@
|
|
|
|
MAINTAINERCLEANFILES = $x-tests $(maint_gen)
|
|
CLEANFILES = $(run_gen)
|
|
|
|
check: $(maint_gen)
|
|
|
|
Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
|
|
rm -f $@ $@t
|
|
sed -n '1,/^##test-files-begin/p' $< > $@t
|
|
tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
|
|
echo "x = $$tool" >> $@t
|
|
$(PERL) -I. -w -- $(mk_script) --list >> $@t
|
|
sed -n '/^##test-files-end/,$$p' $< >> $@t
|
|
mv $@t $@
|