1f08c3bdfSopenharmony_ci#
2f08c3bdfSopenharmony_ci# Read COPYING for licensing details.
3f08c3bdfSopenharmony_ci#
4f08c3bdfSopenharmony_ci# Ngie Cooper, July 2010
5f08c3bdfSopenharmony_ci#
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_citop_srcdir ?= ..
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/config.mk
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_ciINSTALL_BIN_TARGETS = run-all-posix-option-group-tests.sh run-posix-option-group-test.sh
12f08c3bdfSopenharmony_ciINSTALL_TESTCASE_BIN_TARGETS = run-tests.sh t0
13f08c3bdfSopenharmony_ci
14f08c3bdfSopenharmony_ci.PHONY: clean
15f08c3bdfSopenharmony_ciclean:
16f08c3bdfSopenharmony_ci	@rm -f t0.val
17f08c3bdfSopenharmony_ci
18f08c3bdfSopenharmony_ci.PHONY: install
19f08c3bdfSopenharmony_ciinstall: clean $(DESTDIR)/$(bindir) $(DESTDIR)/$(testdir_bin)
20f08c3bdfSopenharmony_ci	set -e; for file in $(INSTALL_BIN_TARGETS); do           \
21f08c3bdfSopenharmony_ci		install -m 00755 $$file $(DESTDIR)/$(bindir)/$$file; \
22f08c3bdfSopenharmony_ci	done
23f08c3bdfSopenharmony_ci
24f08c3bdfSopenharmony_ci	sed -i 's~TESTPATH=""~TESTPATH="$(testdir_rel)"~' $(DESTDIR)/$(bindir)/run-posix-option-group-test.sh
25f08c3bdfSopenharmony_ci
26f08c3bdfSopenharmony_ci	set -e; for file in $(INSTALL_TESTCASE_BIN_TARGETS); do	      \
27f08c3bdfSopenharmony_ci		install -m 00755 $$file $(DESTDIR)/$(testdir_bin)/$$file; \
28f08c3bdfSopenharmony_ci	done
29f08c3bdfSopenharmony_ci
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_ci$(DESTDIR)/$(bindir):
32f08c3bdfSopenharmony_ci	mkdir -p $@
33f08c3bdfSopenharmony_ci
34f08c3bdfSopenharmony_ci$(DESTDIR)/$(testdir_bin):
35f08c3bdfSopenharmony_ci	mkdir -p $@
36