waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
679 stars 47 forks source link

Add DESTDIR variable to Makefile #185

Closed ajanon closed 1 year ago

ajanon commented 1 year ago

This PR depends on #184 which must be merged before this one.

This adds a DESTDIR variable to the Makefile which acts as a prefix for all directories in the install make target. This will make it much easier to package swhkd, as now building and installing boils down to: make && make DESTDIR="packaging_subdir" install. The default is still to install to the root.

This PR also updates contrib/PKGBUILD to make use of this updated install make target.

Shinyzenith commented 1 year ago

Note to self: after merging, update PKGBUILD on the AUR

ajanon commented 1 year ago

Just rebased manually as it seemed like something was wrong (but actually nothing was wrong). Sorry for that, could you please approve again @Shinyzenith?