Makefile: add install stage

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/66/head
Marc Kleine-Budde 2016-10-04 14:27:13 +02:00
parent 0a1372cc22
commit 3881e6f673
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,5 @@
PREFIX := /usr/local
default: testj1939
all: default $(patsubst %.md, %.html, $(wildcard *.md))
@ -5,8 +7,11 @@ all: default $(patsubst %.md, %.html, $(wildcard *.md))
%.html: %.md page.theme
theme -f -o $@ $< -p "$*"
CFLAGS = -Wall -g3 -O0
CFLAGS += -Wall -g3 -O0
CPPFLAGS += -Iinclude/uapi
install:
install -D -m 755 testj1939 ${DESTDIR}${PREFIX}/bin/testj1939
clean:
rm -f testj1939 $(wildcard *.html)