diff options
author | Connor Lane Smith <cls@lubutu.com> | 2011-11-19 19:54:55 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2011-11-19 19:54:55 +0100 |
commit | bb4424df072332243890714b055e978a5c70adf3 (patch) | |
tree | 269b5219179f964d31c6f84d5019bb1479f81800 /Makefile | |
parent | 8ac44eb75a3e2190aa7b89548956b2de33c5a6ce (diff) |
replace lsx with stest
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -3,10 +3,10 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | SRC = dmenu.c draw.c lsx.c | 6 | SRC = dmenu.c draw.c stest.c |
7 | OBJ = ${SRC:.c=.o} | 7 | OBJ = ${SRC:.c=.o} |
8 | 8 | ||
9 | all: options dmenu lsx | 9 | all: options dmenu stest |
10 | 10 | ||
11 | options: | 11 | options: |
12 | @echo dmenu build options: | 12 | @echo dmenu build options: |
@@ -24,18 +24,18 @@ dmenu: dmenu.o draw.o | |||
24 | @echo CC -o $@ | 24 | @echo CC -o $@ |
25 | @${CC} -o $@ dmenu.o draw.o ${LDFLAGS} | 25 | @${CC} -o $@ dmenu.o draw.o ${LDFLAGS} |
26 | 26 | ||
27 | lsx: lsx.o | 27 | stest: stest.o |
28 | @echo CC -o $@ | 28 | @echo CC -o $@ |
29 | @${CC} -o $@ lsx.o ${LDFLAGS} | 29 | @${CC} -o $@ stest.o ${LDFLAGS} |
30 | 30 | ||
31 | clean: | 31 | clean: |
32 | @echo cleaning | 32 | @echo cleaning |
33 | @rm -f dmenu lsx ${OBJ} dmenu-${VERSION}.tar.gz | 33 | @rm -f dmenu stest ${OBJ} dmenu-${VERSION}.tar.gz |
34 | 34 | ||
35 | dist: clean | 35 | dist: clean |
36 | @echo creating dist tarball | 36 | @echo creating dist tarball |
37 | @mkdir -p dmenu-${VERSION} | 37 | @mkdir -p dmenu-${VERSION} |
38 | @cp LICENSE Makefile README config.mk dmenu.1 draw.h dmenu_run lsx.1 ${SRC} dmenu-${VERSION} | 38 | @cp LICENSE Makefile README config.mk dmenu.1 draw.h dmenu_run stest.1 ${SRC} dmenu-${VERSION} |
39 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} | 39 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} |
40 | @gzip dmenu-${VERSION}.tar | 40 | @gzip dmenu-${VERSION}.tar |
41 | @rm -rf dmenu-${VERSION} | 41 | @rm -rf dmenu-${VERSION} |
@@ -43,24 +43,24 @@ dist: clean | |||
43 | install: all | 43 | install: all |
44 | @echo installing executables to ${DESTDIR}${PREFIX}/bin | 44 | @echo installing executables to ${DESTDIR}${PREFIX}/bin |
45 | @mkdir -p ${DESTDIR}${PREFIX}/bin | 45 | @mkdir -p ${DESTDIR}${PREFIX}/bin |
46 | @cp -f dmenu dmenu_run lsx ${DESTDIR}${PREFIX}/bin | 46 | @cp -f dmenu dmenu_run stest ${DESTDIR}${PREFIX}/bin |
47 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu | 47 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu |
48 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run | 48 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run |
49 | @chmod 755 ${DESTDIR}${PREFIX}/bin/lsx | 49 | @chmod 755 ${DESTDIR}${PREFIX}/bin/stest |
50 | @echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1 | 50 | @echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1 |
51 | @mkdir -p ${DESTDIR}${MANPREFIX}/man1 | 51 | @mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
52 | @sed "s/VERSION/${VERSION}/g" < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1 | 52 | @sed "s/VERSION/${VERSION}/g" < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1 |
53 | @sed "s/VERSION/${VERSION}/g" < lsx.1 > ${DESTDIR}${MANPREFIX}/man1/lsx.1 | 53 | @sed "s/VERSION/${VERSION}/g" < stest.1 > ${DESTDIR}${MANPREFIX}/man1/stest.1 |
54 | @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1 | 54 | @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1 |
55 | @chmod 644 ${DESTDIR}${MANPREFIX}/man1/lsx.1 | 55 | @chmod 644 ${DESTDIR}${MANPREFIX}/man1/stest.1 |
56 | 56 | ||
57 | uninstall: | 57 | uninstall: |
58 | @echo removing executables from ${DESTDIR}${PREFIX}/bin | 58 | @echo removing executables from ${DESTDIR}${PREFIX}/bin |
59 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu | 59 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu |
60 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_run | 60 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_run |
61 | @rm -f ${DESTDIR}${PREFIX}/bin/lsx | 61 | @rm -f ${DESTDIR}${PREFIX}/bin/stest |
62 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 | 62 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
63 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 | 63 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 |
64 | @rm -f ${DESTDIR}${MANPREFIX}/man1/lsx.1 | 64 | @rm -f ${DESTDIR}${MANPREFIX}/man1/stest.1 |
65 | 65 | ||
66 | .PHONY: all options clean dist install uninstall | 66 | .PHONY: all options clean dist install uninstall |