add DESTDIR

main
Leonardo Hernández Hernández 2022-03-31 09:39:34 -06:00
parent ae31391115
commit b424602ebc
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 3 additions and 3 deletions

View File

@ -15,11 +15,11 @@ clean:
rm -f dwl *.o *-protocol.h *-protocol.c rm -f dwl *.o *-protocol.h *-protocol.c
install: dwl install: dwl
install -Dm755 dwl $(PREFIX)/bin/dwl install -Dm755 dwl $(DESTDIR)$(PREFIX)/bin/dwl
install -Dm644 dwl.1 $(MANDIR)/man1/dwl.1 install -Dm644 dwl.1 $(DESTDIR)$(MANDIR)/man1/dwl.1
uninstall: uninstall:
rm -f $(PREFIX)/bin/dwl $(MANDIR)/man1/dwl.1 rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1
.PHONY: all clean install uninstall .PHONY: all clean install uninstall