summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-07-17 14:47:50 -0400
committerknolax <1339802534.kk@gmail.com>2017-07-17 14:47:50 -0400
commit80fba410818788b864392b163759db49695d70f2 (patch)
tree17f7bb01ff56e5d269b30b27f2e1af41aa39c6c0
parent76d99f6fb1f2876093fd94b3a69c67fae3a05908 (diff)
changed makefile to install as i3lock-img
-rw-r--r--Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index e1b6e43..3fa9689 100644
--- a/Makefile
+++ b/Makefile
@@ -40,28 +40,28 @@ CPPFLAGS += -DVERSION=\"${I3LOCK_VERSION}\"
.PHONY: install clean uninstall
-all: i3lock
+all: i3lock-img
-i3lock: ${FILES}
+i3lock-img: ${FILES}
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
clean:
- rm -f i3lock ${FILES} i3lock-${VERSION}.tar.gz
+ rm -f i3lock-img ${FILES} i3lock-img-${VERSION}.tar.gz
install: all
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/pam.d
- $(INSTALL) -m 755 i3lock $(DESTDIR)$(PREFIX)/bin/i3lock
+ $(INSTALL) -m 755 i3lock-img $(DESTDIR)$(PREFIX)/bin/i3lock-img
$(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(SYSCONFDIR)/pam.d/i3lock
uninstall:
- rm -f $(DESTDIR)$(PREFIX)/bin/i3lock
+ rm -f $(DESTDIR)$(PREFIX)/bin/i3lock-img
dist: clean
- [ ! -d i3lock-${VERSION} ] || rm -rf i3lock-${VERSION}
- [ ! -e i3lock-${VERSION}.tar.bz2 ] || rm i3lock-${VERSION}.tar.bz2
+ [ ! -d i3lock-img-${VERSION} ] || rm -rf i3lock-img-${VERSION}
+ [ ! -e i3lock-img-${VERSION}.tar.bz2 ] || rm i3lock-img-${VERSION}.tar.bz2
mkdir i3lock-${VERSION}
- cp *.c *.h i3lock.1 i3lock.pam Makefile LICENSE README.md CHANGELOG i3lock-${VERSION}
- sed -e 's/^\s*I3LOCK_VERSION:=\(.*\)/I3LOCK_VERSION:=$(shell /bin/echo '${I3LOCK_VERSION}' | sed 's/\\/\\\\/g')/g;s/^VERSION:=\(.*\)/VERSION:=${VERSION}/g' Makefile > i3lock-${VERSION}/Makefile
- tar cfj i3lock-${VERSION}.tar.bz2 i3lock-${VERSION}
- rm -rf i3lock-${VERSION}
+ cp *.c *.h i3lock.1 i3lock.pam Makefile LICENSE README.md CHANGELOG i3lock-img-${VERSION}
+ sed -e 's/^\s*I3LOCK_VERSION:=\(.*\)/I3LOCK_VERSION:=$(shell /bin/echo '${I3LOCK_VERSION}' | sed 's/\\/\\\\/g')/g;s/^VERSION:=\(.*\)/VERSION:=${VERSION}/g' Makefile > i3lock-img-${VERSION}/Makefile
+ tar cfj i3lock-img-${VERSION}.tar.bz2 i3lock-img-${VERSION}
+ rm -rf i3lock-img-${VERSION}