diff --git a/Makefile b/Makefile index e614ede89..7adad46f5 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,9 @@ default: all .DEFAULT: - cd src && $(MAKE) $@ + $(MAKE) -C src $@ install: - cd src && $(MAKE) $@ + $(MAKE) -C src $@ .PHONY: install diff --git a/src/Makefile b/src/Makefile index 5759a8092..38810d2d7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -55,7 +55,7 @@ else endif PREFIX?=/usr/local -INSTALL_BIN=$(PREFIX)/bin +INSTALL_BIN=$(DESTDIR)$(PREFIX)/bin INSTALL=install PKG_CONFIG?=pkg-config