From 89e09d7703fabac24b94022ca6bc523786c13d84 Mon Sep 17 00:00:00 2001 From: sijanec Date: Mon, 11 Jan 2021 23:16:27 +0100 Subject: 0.1.1: standardizacija Makefile --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b49ead1..4d492c8 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,13 @@ -default: - @echo \ \ \ \ \*\*\* rtv4d-dl Makefile - kratka navodila za namestitev \*\*\* - @echo - če še niste, preberite README.md in se pozanimajte o uporabi - @echo - če še niste, z \`make compile\` izdelajte binarne programe - @echo - če še niste, z \`make install\` namesti v ~/.local/bin/ prej compilej! - @echo to je vse, hvala. +DESTDIR=/usr/local/bin/ -compile: +default: gcc rtv4d-dl.c -o rtv4d-dl -Wall -lm -I. install: - mkdir -p ~/.local/bin - -cp ./rtv4d-dl ~/.local/bin/ + cp rtv4d-dl $(DESTDIR) + +distclean: + rm rtv4d-dl + +clean: + rm rtv4d-dl -- cgit v1.2.3