diff options
author | EuAndreh <eu@euandre.org> | 2021-02-23 00:12:27 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-02-23 00:12:27 -0300 |
commit | e11b4db2a3bd4fea77ad67569196055f241d1649 (patch) | |
tree | 0e86672e618ca1ee1879d57c4d7916b77170f271 | |
parent | Add aux/workflow/public.sh, update aux/workflow/README.sh (diff) | |
download | remembering-e11b4db2a3bd4fea77ad67569196055f241d1649.tar.gz remembering-e11b4db2a3bd4fea77ad67569196055f241d1649.tar.xz |
Use plain Makefile over ./configure + Makefile.in
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile (renamed from Makefile.in) | 6 | ||||
-rwxr-xr-x | configure | 42 |
3 files changed, 3 insertions, 46 deletions
@@ -1,6 +1,5 @@ /public/ /tests/test-profiles/ -/Makefile /remembering /remembering-c /run-tests @@ -3,10 +3,10 @@ CC = c99 CFLAGS = -std=c99 -Wall -Wextra -Wpedantic -fPIC -g -DVERSION='"$(VERSION)"' -DDATE='"$(DATE)"' LDFLAGS = LDLIBS = -PREFIX = @PREFIX@ +PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man -VERSION = @VERSION@ -DATE = @DATE@ +VERSION = 0.2.0 +DATE = 2021-02-21 sources = src/remembering.c diff --git a/configure b/configure deleted file mode 100755 index 021c992..0000000 --- a/configure +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -set -eu - -DATE=2021-02-21 -VERSION=0.2.0 - -# shellcheck disable=2068 -for f in $@; do - case "$f" in - --prefix) - shift - CLI_PREFIX="$1" - shift - ;; - --prefix=*) - CLI_PREFIX="${f#--prefix=}" - shift - ;; - *) - if [ -n "${1:-}" ]; then - shift - fi - ;; - esac -done - -PREFIX="${CLI_PREFIX:-/usr/local}" - -OUT_FILES=' -Makefile -' - -for f in $OUT_FILES; do - printf 'generating "%s"...\n' "$f" - sed "$f.in" \ - -e "s:@PREFIX@:$PREFIX:g" \ - -e "s:@VERSION@:$VERSION:g" \ - -e "s:@DATE@:$DATE:g" \ - > "$f" -done - -echo Done. >&2 |