From 80fba410818788b864392b163759db49695d70f2 Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Mon, 17 Jul 2017 14:47:50 -0400 Subject: changed makefile to install as i3lock-img --- Makefile | 22 +++++++++++----------- 1 file 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} -- cgit v1.1