55 lines
1.8 KiB
Makefile
55 lines
1.8 KiB
Makefile
# Gash --- Guile As SHell
|
|
# Copyright © 2018 Timothy Sample <samplet@ngyro.com>
|
|
#
|
|
# This file is part of Gash.
|
|
#
|
|
# Gash is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or (at
|
|
# your option) any later version.
|
|
#
|
|
# Gash is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with Gash. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
oil-link: oil.scm
|
|
if test -L oil-link; then unlink oil-link; fi
|
|
guix build --root=oil-link --file=oil.scm
|
|
|
|
oil: oil-link
|
|
rm -rf oil
|
|
cp -R -H oil-link "$@"
|
|
chmod -R u+w "$@"
|
|
|
|
oil/bin/gash: oil
|
|
echo "#!/bin/sh" > "$@"
|
|
echo "$(abs_top_builddir)/pre-inst-env gash "'"$$@"' >> "$@"
|
|
chmod a+x "$@"
|
|
|
|
check: oil/bin/gash ;
|
|
|
|
TEST_EXTENSIONS = .sh
|
|
SH_LOG_COMPILER = ./check-spec
|
|
|
|
TESTS = \
|
|
oil/spec/arith.test.sh \
|
|
oil/spec/case_.test.sh \
|
|
oil/spec/command-sub.test.sh \
|
|
oil/spec/errexit.test.sh \
|
|
oil/spec/glob.test.sh \
|
|
oil/spec/loop.test.sh \
|
|
oil/spec/quote.test.sh \
|
|
oil/spec/redirect.test.sh \
|
|
oil/spec/smoke.test.sh \
|
|
oil/spec/word-split.test.sh \
|
|
oil/spec/var-sub.test.sh \
|
|
oil/spec/var-op-strip.test.sh
|
|
|
|
clean-local:
|
|
rm -rf oil
|
|
if test -L oil-link; then unlink oil-link; fi
|