diff options
author | latex <latex@disroot.org> | 2023-02-01 16:06:41 +0100 |
---|---|---|
committer | latex <latex@disroot.org> | 2023-02-01 16:06:41 +0100 |
commit | 20c71f96968a235189cee8b388ac58e9b45f099e (patch) | |
tree | ad16b182e6b07fc0f4c79f510779cb20a0e32cf5 | |
parent | b8cac02d8a7261c537989fd841f9c46331263ec5 (diff) | |
download | libumumble-20c71f96968a235189cee8b388ac58e9b45f099e.tar.gz |
don't force PREFIX and support DESTDIR
-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 c0bf149..65c0a9c 100644 --- a/Makefile +++ b/Makefile @@ -39,12 +39,12 @@ clean: $(MAKE) -C tests clean 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 6c0501d..8f1c34d 100644 --- a/config.mk +++ b/config.mk @@ -1,4 +1,7 @@ +ifeq ($(PREFIX),) PREFIX = /usr/local +endif + BUILD_DIR = build NAME = libumumble SNAME = $(NAME).a |