aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--src/Makefile1
2 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5ae7c62..ce7a79e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,11 @@ export DESTDIR ?=
export PREFIX ?= /usr/local
export CROSS_COMPILE =
-export INCDIR ?= $(PREFIX)/include
+export INCDIR ?= $(PREFIX)/include/tinyalsa
export LIBDIR ?= $(PREFIX)/lib
export BINDIR ?= $(PREFIX)/bin
export MANDIR ?= $(PREFIX)/share/man
-INCDIR ?= $(PREFIX)/include
-
.PHONY: all
all:
$(MAKE) -C src
@@ -23,7 +21,7 @@ clean:
.PHONY: install
install:
- install -d $(DESTDIR)$(INCDIR)/tinyalsa
+ install -d $(DESTDIR)$(INCDIR)/
install include/tinyalsa/pcm.h $(DESTDIR)$(INCDIR)/
install include/tinyalsa/mixer.h $(DESTDIR)$(INCDIR)/
install include/tinyalsa/asoundlib.h $(DESTDIR)$(INCDIR)/
diff --git a/src/Makefile b/src/Makefile
index 8bc5bda..da19c54 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,6 +1,5 @@
DESTDIR ?=
PREFIX ?= /usr/local
-INCDIR ?= $(PREFIX)/include
LIBDIR ?= $(PREFIX)/lib
BINDIR ?= $(PREFIX)/bin
ifdef DEB_HOST_MULTIARCH