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
|
PREFIX=/usr/local
|
||||||
INCFLAGS=`pkg-config x11 --cflags`
|
INCFLAGS=`pkg-config x11 --cflags`
|
||||||
LDFLAGS=`pkg-config x11 --libs`
|
LDFLAGS=`pkg-config x11 --libs`
|
||||||
|
DEFS=-DVERSION=\"1.0\"
|
||||||
CFLAGS=$(INCFLAGS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
|
CFLAGS=$(INCFLAGS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
|
||||||
HDRS=
|
HDRS=
|
||||||
OBJS=src/main.o
|
OBJS=src/main.o
|
||||||
@ -35,10 +36,13 @@ endif
|
|||||||
tinyclip: $(OBJS)
|
tinyclip: $(OBJS)
|
||||||
$(CC) -o $@ $^ $(LDFLAGS)
|
$(CC) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
.PHONY: clean install
|
.PHONY: clean distclean install
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJS)
|
$(RM) $(OBJS)
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
$(RM) tinyclip
|
||||||
|
|
||||||
install: tinyclip
|
install: tinyclip
|
||||||
install -m 755 tinyclip $(PREFIX)/bin/
|
install -m 755 tinyclip $(PREFIX)/bin/
|
||||||
|
Loading…
Reference in New Issue
Block a user