Added framework for experimenting using Go.
[surreal-numbers] / chapter-1-experiments / Makefile
# © 2021 Aaron Taylor <ataylor at subgeniuskitty dot com>
# See LICENSE.txt file for copyright and license details.
####################################################################################################
# Program-specific options
SOURCE != ls *.go
BINARY := ${SOURCE:.go=}
####################################################################################################
# Globally-mandated options
include ../common/mk.conf
all: ${BINARY}
.go:
@${GOCC} ${GOCC_FLAGS} ${GOLD_FLAGS} -o $@ $<
clean:
@rm -f ${BINARY}
install: all
@mkdir -p ${BINPREFIX}
@cp -f ${BINARY} ${BINPREFIX}/surreal-${BINARY}
@chmod 755 ${BINPREFIX}/surreal-${BINARY}
uninstall: all
@rm -f ${BINPREFIX}/surreal-${BINARY}