From d244de5461f79bbd82bc2c0764691263476917e1 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Sun, 2 Oct 2016 09:13:58 -0400 Subject: added INCDIR, LIBDIR, BINDIR and MANDIR for installation --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 8767b8c..f1be254 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,14 @@ -export TOPDIR = $(shell pwd) -export SRCDIR = $(TOPDIR)/src -export INCDIR = $(TOPDIR)/include - export DESTDIR ?= export PREFIX ?= /usr/local export CROSS_COMPILE = +export INCDIR ?= $(PREFIX)/include +export LIBDIR ?= $(PREFIX)/lib +export BINDIR ?= $(PREFIX)/bin +export MANDIR ?= $(PREFIX)/share/man + +INCDIR ?= $(PREFIX)/include + .PHONY: all all: $(MAKE) -C src @@ -19,9 +22,9 @@ clean: $(MAKE) -C doxygen clean .PHONY: install -install: $(LIB) $(SHLIB) - mkdir -p $(DESTDIR)$(PREFIX)/include - cp -Ru $(INCDIR)/tinyalsa $(DESTDIR)$(PREFIX)/include/ +install: + mkdir -p $(DESTDIR)$(INCDIR)/tinyalsa + cp -Ru include/tinyalsa $(DESTDIR)$(INCDIR)/ $(MAKE) -C src install $(MAKE) -C utils install $(MAKE) -C doxygen install -- cgit v1.2.3