1 # slock - simple screen locker
2 # See LICENSE file for copyright and license details.
12 @echo slock build options:
13 @echo "CFLAGS = ${CFLAGS}"
14 @echo "LDFLAGS = ${LDFLAGS}"
19 @${CC} -c ${CFLAGS} $<
21 ${OBJ}: config.h config.mk
24 @echo creating $@ from config.def.h
29 @${CC} -o $@ ${OBJ} ${LDFLAGS}
33 @rm -f slock ${OBJ} slock-${VERSION}.tar.gz
36 @echo creating dist tarball
37 @mkdir -p slock-${VERSION}
38 @cp -R LICENSE Makefile README config.def.h config.mk ${SRC} slock-${VERSION}
39 @tar -cf slock-${VERSION}.tar slock-${VERSION}
40 @gzip slock-${VERSION}.tar
41 @rm -rf slock-${VERSION}
44 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
45 @mkdir -p ${DESTDIR}${PREFIX}/bin
46 @cp -f slock ${DESTDIR}${PREFIX}/bin
47 @chmod 755 ${DESTDIR}${PREFIX}/bin/slock
48 @chmod u+s ${DESTDIR}${PREFIX}/bin/slock
51 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
52 @rm -f ${DESTDIR}${PREFIX}/bin/slock
54 .PHONY: all options clean dist install uninstall