forked from bonsai/harakit
32 lines
617 B
Makefile
32 lines
617 B
Makefile
# Copyright (c) 2023 YAC
|
|
# SPDX-License-Identifier: FSFAP
|
|
#
|
|
# Copying and distribution of this file, with or without modification, are
|
|
# permitted in any medium without royalty provided the copyright notice and this
|
|
# notice are preserved. This file is offered as-is, without any warranty.
|
|
|
|
.POSIX:
|
|
|
|
PREFIX=/usr/local/bin
|
|
|
|
build: build_dir cat false true
|
|
|
|
clean: build_dir
|
|
rm -rf build/
|
|
|
|
cat: build_dir
|
|
cc -o build/cat src/cat.c
|
|
|
|
false: build_dir
|
|
cc -o build/false src/false.c
|
|
|
|
true: build_dir
|
|
cc -o build/true src/true.c
|
|
|
|
build_dir:
|
|
mkdir -p build
|
|
|
|
install: build
|
|
mkdir -p $(PREFIX)
|
|
cp -f build/* $(PREFIX)/
|