1 # slock - simple screen locker
2 # © 2006-2007 Anselm R. Garbe, Sander van Dijk
3 # © 2009 Michael Stapelberg
13 @echo i3lock build options:
14 @echo "CFLAGS = ${CFLAGS}"
15 @echo "LDFLAGS = ${LDFLAGS}"
20 @${CC} -c ${CFLAGS} $<
26 @${CC} -o $@ ${OBJ} ${LDFLAGS}
30 @rm -f i3lock ${OBJ} i3lock-${VERSION}.tar.gz
33 @echo creating dist tarball
34 @mkdir -p i3lock-${VERSION}
35 @cp -R LICENSE Makefile README config.mk i3lock.1 ${SRC} i3lock-${VERSION}
36 @tar -cf i3lock-${VERSION}.tar i3lock-${VERSION}
37 @gzip i3lock-${VERSION}.tar
38 @rm -rf i3lock-${VERSION}
41 @echo installing executable file to $(DESTDIR)$(PREFIX)/bin
42 $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
43 $(INSTALL) -d $(MANDIR)/man1
44 $(INSTALL) -m 755 i3lock $(DESTDIR)$(PREFIX)/bin/i3lock
45 $(INSTALL) -m 644 i3lock.1 $(MANDIR)/man1/i3lock.1
48 @echo removing executable file from $(DESTDIR)$(PREFIX)/bin
49 @rm -f $(DESTDIR)$(PREFIX)/bin/i3lock
51 .PHONY: all options clean dist install uninstall