]> rtime.felk.cvut.cz Git - sojka/sterm.git/blobdiff - Makefile
Update changelog for new release
[sojka/sterm.git] / Makefile
index 862ab6d97c4d08045d1a1d1d166880d18b993b82..f7d0b4dd1881bcad927e7cc340492dfe7f7c3b1f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
 CFLAGS = -O2 -Wall -g
+
+ifneq ($(findstring HAVE_LOCKDEV,$(CFLAGS)),)
 LDLIBS = -llockdev
+endif
 
 PREFIX ?= /usr/local
 INSTALL ?= install
@@ -20,6 +23,6 @@ endif
 ifneq ($(NO_COMP),1)
        $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions/
        $(INSTALL) -m 644 completion.bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/sterm
-       $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/zsh/site-functions
-       $(INSTALL) -m 644 completion.zsh $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_sterm
+       $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/zsh/functions/Completion/Unix/
+       $(INSTALL) -m 644 completion.zsh $(DESTDIR)$(PREFIX)/share/zsh/functions/Completion/Unix/_sterm
 endif