From 58884c99287cb2846462b40e8c58dff392d5361c Mon Sep 17 00:00:00 2001 From: Umgeher Torgersen Date: Tue, 4 Oct 2022 18:22:32 +0000 Subject: [PATCH] new makefile --- Makefile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index eb5b382..b2f9aa1 100644 --- a/Makefile +++ b/Makefile @@ -3,22 +3,16 @@ CFLAGS = -Wall -Wextra -pedantic -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lX PREFIX ?= /usr/local CC ?= cc -all: herbe - -config.h: config.def.h +compile: cp config.def.h config.h - -herbe: herbe.c config.h $(CC) herbe.c $(CFLAGS) -o herbe -install: herbe - mkdir -p ${DESTDIR}${PREFIX}/bin - cp -f herbe ${DESTDIR}${PREFIX}/bin +install: compile + mkdir -p ~/bin + cp -f herbe ~/bin + chmod +x ~/bin/herbe uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/herbe + rm -f ~/bin/herbe -clean: - rm -f herbe - -.PHONY: all install uninstall clean +.PHONY: compile install uninstall