"make install" rule

This commit is contained in:
Mark Hills 2012-11-30 11:59:37 +00:00
parent 12e1bf0995
commit f48f3d0ec8
1 changed files with 10 additions and 1 deletions

View File

@ -1,15 +1,24 @@
-include .config
PREFIX ?= /usr/local
INSTALL ?= install
BINDIR ?= $(PREFIX)/bin
CFLAGS += -Wall
LDLIBS += -lm
.PHONY: clean dist
.PHONY: clean install dist
bpm: bpm.o
clean:
rm -f bpm *.o
install:
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -t $(DESTDIR)$(BINDIR) bpm bpm-graph bpm-tag
dist:
mkdir -p dist
V=$$(git describe) && git archive --prefix=bpm-tools-$$V/ HEAD \