aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-10-02 09:13:58 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2016-10-02 09:13:58 -0400
commitd244de5461f79bbd82bc2c0764691263476917e1 (patch)
tree9b024c8fcbc45a76395af677a528fc2c01a9e698 /Makefile
parentf48c210cf646ab6e6f23f4eb2a5b9078eef06e64 (diff)
added INCDIR, LIBDIR, BINDIR and MANDIR for installation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files 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