Makefile 482 Bytes
Newer Older
Christian Neukirchen's avatar
Christian Neukirchen committed
1
ALL=lr
2
ZSHCOMP=_lr
Christian Neukirchen's avatar
Christian Neukirchen committed
3 4 5 6 7 8 9

CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings

DESTDIR=
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
10
ZSHCOMPDIR=$(PREFIX)/share/zsh/site-functions
Christian Neukirchen's avatar
Christian Neukirchen committed
11 12 13 14 15 16 17

all: $(ALL)

clean: FRC
	rm -f lr

install: FRC all
18
	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(ZSHCOMPDIR)
Christian Neukirchen's avatar
Christian Neukirchen committed
19
	install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
Christian Neukirchen's avatar
Christian Neukirchen committed
20
	install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1
21
	install -m0644 $(ZSHCOMP) $(DESTDIR)$(ZSHCOMPDIR)
Christian Neukirchen's avatar
Christian Neukirchen committed
22 23

FRC: