"make install" rule
This commit is contained in:
parent
12e1bf0995
commit
f48f3d0ec8
11
Makefile
11
Makefile
|
|
@ -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 \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue