1 # slock - simple screen locker
2 # (C)opyright MMVI-MMVII Anselm R. Garbe
12 @echo slock build options:
13 @echo "CFLAGS = ${CFLAGS}"
14 @echo "LDFLAGS = ${LDFLAGS}"
20 @${CC} -c ${CFLAGS} $<
26 @${LD} -o $@ ${OBJ} ${LDFLAGS}
31 @rm -f slock ${OBJ} slock-${VERSION}.tar.gz
34 @echo creating dist tarball
35 @mkdir -p slock-${VERSION}
36 @cp -R LICENSE Makefile README config.mk ${SRC} slock-${VERSION}
37 @tar -cf slock-${VERSION}.tar slock-${VERSION}
38 @gzip slock-${VERSION}.tar
39 @rm -rf slock-${VERSION}
42 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
43 @mkdir -p ${DESTDIR}${PREFIX}/bin
44 @cp -f slock ${DESTDIR}${PREFIX}/bin
45 @chmod 755 ${DESTDIR}${PREFIX}/bin/slock
46 @chmod u+s ${DESTDIR}${PREFIX}/bin/slock
49 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
50 @rm -f ${DESTDIR}${PREFIX}/bin/slock
52 .PHONY: all options clean dist install uninstall