Added -v option to show uwufetch version

This commit is contained in:
TheDarkBug 2022-03-31 10:31:36 +02:00
parent edc3ac96ca
commit 82bdbe4cbd
2 changed files with 18 additions and 8 deletions

View file

@ -1,7 +1,8 @@
NAME = uwufetch
FILES = uwufetch.c
CFLAGS = -O3
CFLAGS_DEBUG = -Wall -Wextra -g -pthread
UWUFETCH_VERSION = UWUFETCH_VERSION="\"$(shell git describe --tags)\""
CFLAGS = -O3 -D$(UWUFETCH_VERSION)
CFLAGS_DEBUG = -Wall -Wextra -g -pthread -D$(UWUFETCH_VERSION)
CC = cc
DESTDIR = /usr
PLATFORM = $(shell uname)