From e25dbbc11f961c04deedff9fe143807e6c6bfa07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 17 Feb 2020 15:37:49 +0100 Subject: [PATCH] Added version DEFINE and distclean target. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3401f34..1feeb3e 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ DEBUG=0 PREFIX=/usr/local INCFLAGS=`pkg-config x11 --cflags` LDFLAGS=`pkg-config x11 --libs` +DEFS=-DVERSION=\"1.0\" CFLAGS=$(INCFLAGS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror HDRS= OBJS=src/main.o @@ -35,10 +36,13 @@ endif tinyclip: $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) -.PHONY: clean install +.PHONY: clean distclean install clean: $(RM) $(OBJS) +distclean: clean + $(RM) tinyclip + install: tinyclip install -m 755 tinyclip $(PREFIX)/bin/