diff --git a/Makefile b/Makefile index 91017f0..1c2ba80 100644 --- a/Makefile +++ b/Makefile @@ -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)