aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index da5344b..90f178b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
3 3
4include config.mk 4include config.mk
5 5
6SRC = dinput.c dmenu.c draw.c 6SRC = dinput.c dmenu.c
7OBJ = ${SRC:.c=.o} 7OBJ = ${SRC:.c=.o}
8 8
9all: options dinput dmenu 9all: options dinput dmenu
@@ -18,28 +18,28 @@ options:
18 @echo CC $< 18 @echo CC $<
19 @${CC} -c ${CFLAGS} $< 19 @${CC} -c ${CFLAGS} $<
20 20
21${OBJ}: config.h config.mk draw.h 21${OBJ}: config.h config.mk draw/libdraw.a
22 22
23config.h: 23config.h:
24 @echo creating $@ from config.def.h 24 @echo creating $@ from config.def.h
25 @cp config.def.h $@ 25 @cp config.def.h $@
26 26
27dinput: dinput.o draw.o 27.o:
28 @echo CC -o $@ 28 @echo CC -o $@
29 @${CC} -o $@ $+ ${LDFLAGS} 29 @${CC} -o $@ $< ${LDFLAGS}
30 30
31dmenu: dmenu.o draw.o 31draw/libdraw.a:
32 @echo CC -o $@ 32 @cd draw && make
33 @${CC} -o $@ $+ ${LDFLAGS}
34 33
35clean: 34clean:
36 @echo cleaning 35 @echo cleaning
37 @rm -f dinput dmenu ${OBJ} dmenu-${VERSION}.tar.gz 36 @rm -f dinput dmenu ${OBJ} dmenu-${VERSION}.tar.gz
37 @cd draw && make clean
38 38
39dist: clean 39dist: clean
40 @echo creating dist tarball 40 @echo creating dist tarball
41 @mkdir -p dmenu-${VERSION} 41 @mkdir -p dmenu-${VERSION}
42 @cp -R LICENSE Makefile README config.mk dmenu.1 config.def.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION} 42 @cp -R LICENSE Makefile README config.mk dmenu.1 config.def.h dmenu_path dmenu_run draw ${SRC} dmenu-${VERSION}
43 @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} 43 @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
44 @gzip dmenu-${VERSION}.tar 44 @gzip dmenu-${VERSION}.tar
45 @rm -rf dmenu-${VERSION} 45 @rm -rf dmenu-${VERSION}