File: Makefile.in

package info (click to toggle)
slice 1.3.8-12
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 864 kB
  • ctags: 452
  • sloc: ansic: 3,310; perl: 2,263; sh: 869; makefile: 296; yacc: 127
file content (47 lines) | stat: -rw-r--r-- 1,183 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##
##  Makefile for test suite
##

@SET_MAKE@
PATH_PERL = @PATH_PERL@
prefix    = @prefix@

all:

install:

test:
	@set -e; \
	root=`$(PATH_PERL) -e 'use Cwd; ($$cwd = cwd) =~ s|/?$$|/TEST.root|; print $$cwd'`; \
	if [ ! -d TEST.root ]; then \
	    echo "Temporarily installing SLICE into local test tree:"; \
	    rm -rf TEST.root 2>/dev/null; mkdir TEST.root; \
	    (cd .. && $(MAKE) all 2>&1) |\
	    (cd .. && $(MAKE) install prefix=$$root 2>&1) |\
	    $(PATH_PERL) -n -e 's/^.*$$/./s; print STDERR $$_; $$i++; print STDERR "\n" if ($$i % 60 == 0);'; \
	    echo ''; \
	    echo "Fixing installation prefix for local test tree:"; \
	    case x$(prefix) in \
	      x*slice* ) lib="lib" ;; \
	      x* ) lib="lib/slice" ;; \
	    esac; \
	    cd TEST.root; file=bin/slice; \
	    sed -e '4,$$'"s;$(prefix);$${root};g" <$$file >$$file.n; \
	    mv $$file.n $$file; chmod a+x $$file; \
	    cd ..; \
	else :; \
	fi; \
	echo "Running Slice Test Suite (still incomplete):"; \
	LANG=C; LC_ALL=C; export LANG LC_ALL; \
	SLICE=$$root/bin/slice; export SLICE; \
	$(PATH_PERL) TEST

clean:
	-rm -rf TEST.root 2>/dev/null

distclean: clean
	-rm -f Makefile

realclean: distclean

##EOF##