Skip to content

Commit

Permalink
Add support for DESTDIR to Makefile
Browse files Browse the repository at this point in the history
Makes building packages easier.
  • Loading branch information
nhuff authored and mpalmi committed Sep 21, 2020
1 parent 0ebaad0 commit 6934feb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ endif
install: install-headers

install-headers:
$(INSTALL_DATA) "set_user.h" $(includedir)
$(MKDIR_P) "$(DESTDIR)$(includedir)"
$(INSTALL_DATA) "set_user.h" "$(DESTDIR)$(includedir)"

uninstall: uninstall-headers

uninstall-headers:
rm "$(includedir)/set_user.h"
rm "$(DESTDIR)$(includedir)/set_user.h"

0 comments on commit 6934feb

Please sign in to comment.