1
0
forked from bonsai/harakit

cat(1p), true(1p), false(1p): added source files & Makefile

This commit is contained in:
2023-07-23 21:54:43 -06:00
committed by Emma Tebibyte
parent 3b58aa764a
commit bb099036fb
4 changed files with 169 additions and 0 deletions

28
Makefile Normal file
View File

@@ -0,0 +1,28 @@
# 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
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)/