"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 -include .config
PREFIX ?= /usr/local
INSTALL ?= install
BINDIR ?= $(PREFIX)/bin
CFLAGS += -Wall CFLAGS += -Wall
LDLIBS += -lm LDLIBS += -lm
.PHONY: clean dist .PHONY: clean install dist
bpm: bpm.o bpm: bpm.o
clean: clean:
rm -f bpm *.o rm -f bpm *.o
install:
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -t $(DESTDIR)$(BINDIR) bpm bpm-graph bpm-tag
dist: dist:
mkdir -p dist mkdir -p dist
V=$$(git describe) && git archive --prefix=bpm-tools-$$V/ HEAD \ V=$$(git describe) && git archive --prefix=bpm-tools-$$V/ HEAD \