diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2016-10-02 09:13:58 -0400 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2016-10-02 09:13:58 -0400 |
commit | d244de5461f79bbd82bc2c0764691263476917e1 (patch) | |
tree | 9b024c8fcbc45a76395af677a528fc2c01a9e698 /Makefile | |
parent | f48c210cf646ab6e6f23f4eb2a5b9078eef06e64 (diff) |
added INCDIR, LIBDIR, BINDIR and MANDIR for installation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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 |