diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | config.mk | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile index 613771b..85fbc84 100644 --- a/Makefile +++ b/Makefile @@ -29,12 +29,12 @@ clean: rm -rf $(SNAME) $(DNAME) $(BUILD_DIR) install-header: - install -m 644 $(H) $(PREFIX)/include + install -m 644 $(H) $(DESTDIR)$(PREFIX)/include install-static: $(SNAME) - install -m 755 $(SNAME) $(PREFIX)/lib64 + install -m 755 $(SNAME) $(DESTDIR)$(PREFIX)/lib64 install-shared: $(DNAME) - install -m 755 $(DNAME) $(PREFIX)/lib64 + install -m 755 $(DNAME) $(DESTDIR)$(PREFIX)/lib64 install: install-header install-static install-shared diff --git a/config.mk b/config.mk index 8de5d81..0a60311 100644 --- a/config.mk +++ b/config.mk @@ -1,4 +1,7 @@ +ifeq ($(PREFIX),) PREFIX = /usr/local +endif + BUILD_DIR = build NAME = libuv_link_t SNAME = $(NAME).a |