Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - slock - simple X display locker utility
git clone git://git.suckless.org/slock
Log
Files
Refs
README
LICENSE
---
Makefile (1067B)
---
1 # slock - simple screen locker
2 # See LICENSE file for copyright and license details.
3
4 include config.mk
5
6 SRC = slock.c ${COMPATSRC}
7 OBJ = ${SRC:.c=.o}
8
9 all: slock
10
11 .c.o:
12 ${CC} -c ${CFLAGS} $<
13
14 ${OBJ}: config.h config.mk arg.h util.h
15
16 config.h:
17 cp config.def.h $@
18
19 slock: ${OBJ}
20 ${CC} -o $@ ${OBJ} ${LDFLAGS}
21
22 clean:
23 rm -f slock ${OBJ} slock-${VERSION}.tar.gz
24
25 dist: clean
26 mkdir -p slock-${VERSION}
27 cp -R LICENSE Makefile README slock.1 config.mk \
28 ${SRC} config.def.h arg.h util.h slock-${VERSION}
29 tar -cf slock-${VERSION}.tar slock-${VERSION}
30 gzip slock-${VERSION}.tar
31 rm -rf slock-${VERSION}
32
33 install: all
34 mkdir -p ${DESTDIR}${PREFIX}/bin
35 cp -f slock ${DESTDIR}${PREFIX}/bin
36 chmod 755 ${DESTDIR}${PREFIX}/bin/slock
37 chmod u+s ${DESTDIR}${PREFIX}/bin/slock
38 mkdir -p ${DESTDIR}${MANPREFIX}/man1
39 sed "s/VERSION/${VERSION}/g" <slock.1 >${DESTDIR}${MANPREFIX}/ma…
40 chmod 644 ${DESTDIR}${MANPREFIX}/man1/slock.1
41
42 uninstall:
43 rm -f ${DESTDIR}${PREFIX}/bin/slock
44 rm -f ${DESTDIR}${MANPREFIX}/man1/slock.1
45
46 .PHONY: all clean dist install uninstall
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.