summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 812d3349fd6b4673a717ce9fb582d3aec11dc148 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PREFIX ?= /usr/local
BINDIR ?= /bin

CFLAGS = -Wunused-variable -Wunused-function -Wconversion

all: wd

clean:
	rm -f wd

wd: wd.c
	$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)

install:
	install -m755 wd -t "$(DESTDIR)$(PREFIX)$(BINDIR)"

uninstall:
	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/wd"

.PHONY: all install uninstall clean