Support custom build directories and move includes
[zfs.git] / scripts / zpios-test / Makefile.am
1 pkglibexecdir = $(libexecdir)/@PACKAGE@/zpios-test
2 dist_pkglibexec_SCRIPTS = \
3         $(top_srcdir)/scripts/zpios-test/16th-8192rc-4rs-1cs-4off.sh \
4         $(top_srcdir)/scripts/zpios-test/1th-16rc-4rs-1cs-4off.sh \
5         $(top_srcdir)/scripts/zpios-test/1x256th-65536rc-4rs-1cs-4off.sh \
6         $(top_srcdir)/scripts/zpios-test/256th-65536rc-4rs-1cs-4off.sh \
7         $(top_srcdir)/scripts/zpios-test/4th-1024rc-4rs-1cs-4off.sh \
8         $(top_srcdir)/scripts/zpios-test/large.sh \
9         $(top_srcdir)/scripts/zpios-test/large-thread-survey.sh \
10         $(top_srcdir)/scripts/zpios-test/medium.sh \
11         $(top_srcdir)/scripts/zpios-test/small.sh \
12         $(top_srcdir)/scripts/zpios-test/tiny.sh
13
14 all:
15         @list='$(dist_pkglibexec_SCRIPTS)'; \
16         for file in $$list; do \
17                 link=$$(basename $$file); \
18                 if [ ! -e $$link ]; then \
19                         $(LN_S) $$file $$link; \
20                 fi \
21         done
22
23 clean:
24         @list='$(dist_pkglibexec_SCRIPTS)'; \
25         for file in $$list; do \
26                 link=$$(basename $$file); \
27                 if [ -L $$link ]; then \
28                         $(RM) $$link; \
29                 fi \
30         done