Fix bugs in paste location.
[rover.git] / Makefile
blob338781771e52685a2f70d701164fe6b5728f7ebc
1 LDLIBS=-lncursesw
2 PREFIX=/usr/local
3 MANPREFIX=$(PREFIX)/man
4 BINDIR=$(DESTDIR)$(PREFIX)/bin
5 MANDIR=$(DESTDIR)$(MANPREFIX)/man1
7 all: rover
9 rover: rover.c config.h
10 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)
12 install: rover
13 rm -f $(BINDIR)/rover
14 mkdir -p $(BINDIR)
15 cp rover $(BINDIR)/rover
16 mkdir -p $(MANDIR)
17 cp rover.1 $(MANDIR)/rover.1
19 uninstall: $(DESTDIR)$(PREFIX)/bin/rover
20 rm $(BINDIR)/rover
21 rm $(MANDIR)/rover.1
23 clean:
24 $(RM) rover