aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortoni <toni@devlap.local>2014-12-25 03:19:33 +0100
committertoni <toni@devlap.local>2014-12-25 03:19:33 +0100
commit69b91a3ebe3e7c90497645470bd92dbfa025568f (patch)
tree17760c4d2a3d2c722f0a027b2b3ef464582b5b8d /Makefile
parent6020a1e4f9dd35a8077ccd0c8170c7d33e661035 (diff)
debian maintainer scripts/configs renewed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 60e27a6..e2ffc96 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-CFLAGS ?= $(shell ncurses5-config --cflags) -Wall -D_GNU_SOURCE=1 -g
+CFLAGS ?= $(shell ncurses5-config --cflags) -Wall -D_GNU_SOURCE=1
LDFLAGS ?= $(shell ncurses5-config --libs) -pthread
CC := gcc
INSTALL ?= install
-VERSION = $(shell if [ -d ./.git ]; then echo -n "git-"; git rev-parse --short HEAD; else echo "1.1a"; fi)
+VERSION ?= $(shell if [ -d ./.git ]; then echo -n "git-"; git rev-parse --short HEAD; else echo "1.1a"; fi)
BIN = naskpass
SOURCES = status.c ui_ani.c ui_input.c ui_statusbar.c ui.c main.c
@@ -13,13 +13,15 @@ $(BIN): $(SOURCES)
install:
$(INSTALL) -D -m 0755 $(BIN) $(DESTDIR)/lib/cryptsetup/naskpass
- $(INSTALL) -D -m 0755 scripts/naskpass.inithook $(DESTDIR)/usr/share/initramfs-tools/hooks/naskpass
+ $(INSTALL) -D -m 0755 scripts/naskpass.inithook $(DESTDIR)/usr/share/naskpass/naskpass.hook.initramfs
$(INSTALL) -D -m 0755 scripts/naskpass.initscript $(DESTDIR)/usr/share/naskpass/naskpass.script.initramfs
+ $(INSTALL) -D -m 0755 scripts/naskconf $(DESTDIR)/usr/share/naskpass/naskconf
uninstall:
rm -f $(DESTDIR)/lib/cryptsetup/naskpass
rm -f $(DESTDIR)/usr/share/initramfs-tools/hooks/naskpass
rm -f $(DESTDIR)/usr/share/naskpass/naskpass.script.initramfs
+ rm -f $(DESTDIR)/usr/share/naskpass/naskconf
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/naskpass
clean:
@@ -28,10 +30,4 @@ clean:
source:
-dh_make --createorig -p naskpass_$(VERSION) -s -y
-deb-clean:
- -rm ../naskpass_$(VERSION)*
-
-deb: deb-clean source
- dpkg-buildpackage -tc -us -uc
-
.PHONY: all install clean