searpent/Makefile

21 lines
513 B
Makefile

# Copyright (c) 2023 Emma Tebibyte
# 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 searpent.c
cc -o build/searpent -l curl -l jansson searpent.c
build_dir:
mkdir -p build
install: build
mkdir -p $(PREFIX)
cp -f build/searpent $(PREFIX)/