8 PREFIX ?= $(DESTDIR)/usr/local
9 MANPREFIX ?= $(PREFIX)/man
11 bindir = $(PREFIX)/bin
12 mandir = $(MANPREFIX)/man1
19 $(CC) -o $@ $(OBJ) $(LDFLAGS)
22 $(CC) -std=c99 -pedantic $(CFLAGS) $(CPPFLAGS) -c $<
26 install -m 755 $(BIN) $(bindir)
28 install -m 644 $(MAN) $(mandir)
31 cd $(bindir) && rm -f $(BIN)
32 cd $(mandir) && rm -f $(MAN)
36 cp -rf CHANGES README COPYING Makefile version.mk t $(SRC) $(MAN) \
38 tar cf - rene-$(V) | gzip >rene-$(V).tar.gz
42 -rm -rf $(BIN) $(OBJ) rene-$(V) *.tar.gz *.core t/*.out t/*.err
50 .PHONY: all install uninstall clean dist test