41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
## Ulambda Makefile.am
|
|
#
|
|
# Copyright (C) 2018 Mike Gerwitz
|
|
#
|
|
# This file is part of Ulambda Scheme.
|
|
#
|
|
# Ulambda Scheme 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.
|
|
#
|
|
# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
##
|
|
|
|
path_build_aux = $(top_srcdir)/build_aux
|
|
path_bootstrap = $(top_srcdir)/bootstrap
|
|
|
|
.PHONY: bootstrap
|
|
|
|
all: bootstrap
|
|
|
|
# will force a reconfigure (for version data) if in the git repo
|
|
reconf:
|
|
test ! -d .git || ./autogen.sh
|
|
|
|
bootstrap:
|
|
if HAS_NODEJS
|
|
cd "$(path_bootstrap)" && "$(NODEJS)" bootstrap.js
|
|
else
|
|
@echo "Node.js is required for command-line bootstrapping."
|
|
@echo "Alternatively, direct your web browser to"
|
|
@echo "bootstrap/bootstrap.html to bootstrap in-browser."
|
|
@exit 1
|
|
endif
|