From e3f7005180ed6e965ff9899ea30d897543a8b636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 2 Oct 2017 19:03:43 +0200 Subject: [PATCH] Move /bin suffix to $prefix This makes it a lot more portable. For example, on NixOS, there is no `bin` directory. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 092eebe..752336f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ # for debug add -g -O0 to line below CFLAGS+=-pthread -O2 -Wall -Wextra -Wpedantic -Wstrict-overflow -fno-strict-aliasing -std=gnu11 -g -O0 -prefix=/usr/local +prefix=/usr/local/bin all: ${CC} main.c fiche.c $(CFLAGS) -o fiche install: fiche - install -m 0755 fiche $(prefix)/bin + install -m 0755 fiche $(prefix) clean: rm -f fiche