diff --git a/wmacpi/Makefile b/wmacpi/Makefile index 44fb5bd..5c6f0aa 100644 --- a/wmacpi/Makefile +++ b/wmacpi/Makefile @@ -62,10 +62,10 @@ clean: clean-all: clean install: $(targets) - install -d $(PREFIX)/bin/ - install -pc $(targets) $(PREFIX)/bin/ - install -d $(PREFIX)/share/man/man1/ - install -pc $(doc_targets) $(PREFIX)/share/man/man1/ + install -d $(DESTDIR)$(PREFIX)/bin/ + install -pc $(targets) $(DESTDIR)$(PREFIX)/bin/ + install -d $(DESTDIR)$(PREFIX)/share/man/man1/ + install -pc $(doc_targets) $(DESTDIR)$(PREFIX)/share/man/man1/ tags: etags $(WMSRC) $(CLSRC) $(HEADERS)