Added version DEFINE and distclean target.

This commit is contained in:
Nicolás Ortega Froysa 2020-02-17 15:37:49 +01:00
parent a45b0cae85
commit e25dbbc11f

View File

@ -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/