xref: /NextBSD/contrib/libxo/bin/Makefile.am (revision 4bf303e5af1834cdd3092175eeca7676420229c4)
1#
2# Copyright 2013, Juniper Networks, Inc.
3# All rights reserved.
4# This SOFTWARE is licensed under the LICENSE provided in the
5# ../Copyright file. By downloading, installing, copying, or otherwise
6# using the SOFTWARE, you agree to be bound by the terms of that
7# LICENSE.
8
9ACLOCAL_AMFLAGS = -I m4
10
11EXTRA_DIST = gt setup.sh
12
13GT_INSTALL_DIR = ${prefix}/bin
14GT_INSTALL_FILES = gt
15
16install-data-hook:
17	@echo "Installing gt ... "
18	@-mkdir -p ${GT_INSTALL_DIR}
19	@for file in ${GT_INSTALL_FILES} ; do \
20		if [ -f $$file ]; then \
21			rfile=$$file ; \
22		else \
23			rfile=${srcdir}/$$file ; \
24		fi ; \
25		mdir=${GT_INSTALL_DIR}/ ; \
26		mkdir -p $$mdir ; \
27		cp $$rfile $$mdir/ ; \
28        done
29	@${CHMOD} a+x ${GT_INSTALL_DIR}/gt
30