Permalink
Browse files

Add LIBDIR to Makefile.

Closes #24
  • Loading branch information...
1 parent e190c37 commit ed46e86bccd205597bffe20900a711cce6907ace @vodik committed Mar 1, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 Makefile
View
@@ -28,6 +28,8 @@ LDLIBS := \
${dbus_LDLIBS} \
${LDLIBS}
+LIBDIR ?= lib
+
all: envoyd envoy envoy-exec pam_envoy.so
envoyd: envoyd.o agents.o socket.o util.o \
@@ -58,12 +60,12 @@ install: envoyd envoy pam_envoy.so
install -Dm755 envoyd ${DESTDIR}/usr/bin/envoyd
install -Dm755 envoy ${DESTDIR}/usr/bin/envoy
install -Dm755 envoy-exec ${DESTDIR}/usr/bin/envoy-exec
- install -Dm755 pam_envoy.so ${DESTDIR}/usr/lib/security/pam_envoy.so
+ install -Dm755 pam_envoy.so ${DESTDIR}/usr/${LIBDIR}/security/pam_envoy.so
install -Dm644 man/envoyd.1 ${DESTDIR}/usr/share/man/man1/envoyd.1
install -Dm644 man/envoy.1 ${DESTDIR}/usr/share/man/man1/envoy.1
install -Dm644 man/envoy-exec.1 ${DESTDIR}/usr/share/man/man1/envoy-exec.1
- install -Dm644 units/envoy@.service ${DESTDIR}/usr/lib/systemd/system/envoy@.service
- install -Dm644 units/envoy@.socket ${DESTDIR}/usr/lib/systemd/system/envoy@.socket
+ install -Dm644 units/envoy@.service ${DESTDIR}/usr/${LIBDIR}/systemd/system/envoy@.service
+ install -Dm644 units/envoy@.socket ${DESTDIR}/usr/${LIBDIR}/systemd/system/envoy@.socket
install -Dm644 zsh-completion ${DESTDIR}/usr/share/zsh/site-functions/_envoy
clean:

0 comments on commit ed46e86

Please sign in to comment.