Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - sselp - simple X selection printer to stdout
git clone git://git.suckless.org/sselp
Log
Files
Refs
README
LICENSE
---
Makefile (1015B)
---
1 # sselp - simple print selection
2
3 include config.mk
4
5 SRC = sselp.c
6 OBJ = ${SRC:.c=.o}
7
8 all: options sselp
9
10 options:
11 @echo sselp build options:
12 @echo "CFLAGS = ${CFLAGS}"
13 @echo "LDFLAGS = ${LDFLAGS}"
14 @echo "CC = ${CC}"
15
16 .c.o:
17 @echo CC $<
18 @${CC} -c ${CFLAGS} $<
19
20 ${OBJ}: config.mk
21
22 sselp: ${OBJ}
23 @echo CC -o $@
24 @${CC} -o $@ ${OBJ} ${LDFLAGS}
25
26 clean:
27 @echo cleaning
28 @rm -f sselp ${OBJ} sselp-${VERSION}.tar.gz
29
30 dist: clean
31 @echo creating dist tarball
32 @mkdir -p sselp-${VERSION}
33 @cp -R LICENSE Makefile README config.mk ${SRC} sselp-${VERSION}
34 @tar -cf sselp-${VERSION}.tar sselp-${VERSION}
35 @gzip sselp-${VERSION}.tar
36 @rm -rf sselp-${VERSION}
37
38 install: all
39 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
40 @mkdir -p ${DESTDIR}${PREFIX}/bin
41 @cp -f sselp ${DESTDIR}${PREFIX}/bin
42 @chmod 755 ${DESTDIR}${PREFIX}/bin/sselp
43
44 uninstall:
45 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
46 @rm -f ${DESTDIR}${PREFIX}/bin/sselp
47
48 .PHONY: all options 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.