Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - sprop - simple xprop replacement
git clone git://git.suckless.org/sprop
Log
Files
Refs
README
LICENSE
---
Makefile (1358B)
---
1 # sprop - simple X property utility
2
3 include config.mk
4
5 SRC = sprop.c
6 OBJ = ${SRC:.c=.o}
7
8 all: options sprop
9
10 options:
11 @echo sprop 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 sprop: ${OBJ}
23 @echo CC -o $@
24 @${CC} -o $@ ${OBJ} ${LDFLAGS}
25
26 clean:
27 @echo cleaning
28 @rm -f sprop ${OBJ} sprop-${VERSION}.tar.gz
29
30 dist: clean
31 @echo creating dist tarball
32 @mkdir -p sprop-${VERSION}
33 @cp -R LICENSE Makefile README config.mk sprop.1 ${SRC} sprop-${…
34 @tar -cf sprop-${VERSION}.tar sprop-${VERSION}
35 @gzip sprop-${VERSION}.tar
36 @rm -rf sprop-${VERSION}
37
38 install: all
39 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
40 @mkdir -p ${DESTDIR}${PREFIX}/bin
41 @cp -f sprop ${DESTDIR}${PREFIX}/bin
42 @chmod 755 ${DESTDIR}${PREFIX}/bin/sprop
43 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
44 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
45 @sed "s/VERSION/${VERSION}/g" < sprop.1 > ${DESTDIR}${MANPREFIX}…
46 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/sprop.1
47
48 uninstall:
49 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
50 @rm -f ${DESTDIR}${PREFIX}/bin/sprop
51 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
52 @rm -f ${DESTDIR}${MANPREFIX}/man1/sprop.1
53
54 .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.