diff options
-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 |