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