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