summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix/tools/Makefile.am
blob: a5d745036ebaab39793e438bd9508399c8a0fdda (plain) (blame)
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
##
## $Id$
##

AUTOMAKE_OPTIONS = foreign 1.4
ACLOCAL_AMFLAGS = -I ../../../../../../../aclocal

if PERL
perl_scripts = shmdump semdump
PERL_TMPINSTALL_FILES = $(PROJECT_ROOT)/posix/tests/shmdump \
    $(PROJECT_ROOT)/posix/tests/semdump
endif

noinst_SCRIPTS = runtest looptest $(perl_scripts)

$(PROJECT_ROOT)/posix/tests:
	$(mkinstalldirs) $@

$(PROJECT_ROOT)/posix/tests/runtest: runtest
	$(INSTALL_SCRIPT) $< $@

$(PROJECT_ROOT)/posix/tests/looptest: looptest
	$(INSTALL_SCRIPT) $< $@

$(PROJECT_ROOT)/posix/tests/shmdump: shmdump
	$(INSTALL_SCRIPT) $< $@

$(PROJECT_ROOT)/posix/tests/semdump: semdump
	$(INSTALL_SCRIPT) $< $@

TMPINSTALL_FILES = $(PROJECT_ROOT)/posix/tests \
    $(PROJECT_ROOT)/posix/tests/runtest $(PROJECT_ROOT)/posix/tests/looptest

## HACK: install to build-tree
all-local: $(TMPINSTALL_FILES) $(PERL_TMPINSTALL_FILES)

include $(top_srcdir)/../../../../../../../automake/host.am