Added version DEFINE and distclean target.
This commit is contained in:
parent
a45b0cae85
commit
e25dbbc11f
6
Makefile
6
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/
|
||||
|
Loading…
Reference in New Issue
Block a user