File: Makefile.am

package info (click to toggle)
mcpp 2.7.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,940 kB
  • sloc: ansic: 35,244; sh: 9,241; makefile: 116; cpp: 84; exp: 18
file content (40 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (6)
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
## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = dejagnu foreign

if REPLACE_CPP

Makefile:

check-DEJAGNU:
	EXPECT=$(EXPECT); export EXPECT

	@if test x"$(gcc_testsuite_dir)" = x""; then \
        echo "ERROR: testsuite directory is not specified.  Do './configure --with-gcc-testsuite-dir=directory' prior to 'make check'"; \
        exit 1; \
    fi
	@if test `$(cpp_call) -v /dev/null 2>&1 | grep 'MCPP' > /dev/null; echo $$?` != 0; \
            then \
        echo "ERROR: Do 'make install' prior to 'make check'"; \
        exit 1; \
    fi
	@if test -f "$(gcc_testsuite_dir)/gcc.dg/cpp-test/test-t/cpp-test.exp"; \
            then :; \
    else \
        echo '  cp -Rp $(top_srcdir)/cpp-test $(gcc_testsuite_dir)/gcc.dg'; \
        cp -Rp $(top_srcdir)/cpp-test "$(gcc_testsuite_dir)/gcc.dg"; \
    fi
	@$(top_srcdir)/tests/set_test.sh '$(CC)' '$(gcc_path)' '$(gcc_testsuite_dir)' $(gcc_maj_ver) '$(LN_S)' '$(cpp_call)' '$(target_cc)'
	-$(RUNTEST) --tool gcc --srcdir $(gcc_testsuite_dir) cpp-test.exp
	@$(top_srcdir)/tests/after_test.sh '$(CC)' '$(gcc_path)' '$(cpp_call)' '$(target_cc)'

uninstall:
	@if test x"$(gcc_testsuite_dir)" != x""; then \
        cd "$(gcc_testsuite_dir)"; \
        if test -f "gcc.dg/cpp-test/test-t/cpp-test.exp"; then \
            echo "  rm -rf gcc.dg/cpp-test"; \
            rm -rf gcc.dg/cpp-test; \
        fi \
    fi

endif