diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | SRC = dinput.c dmenu.c draw.c | 6 | SRC = dinput.c dmenu.c |
7 | OBJ = ${SRC:.c=.o} | 7 | OBJ = ${SRC:.c=.o} |
8 | 8 | ||
9 | all: options dinput dmenu | 9 | all: 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 | ||
23 | config.h: | 23 | config.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 | ||
27 | dinput: dinput.o draw.o | 27 | .o: |
28 | @echo CC -o $@ | 28 | @echo CC -o $@ |
29 | @${CC} -o $@ $+ ${LDFLAGS} | 29 | @${CC} -o $@ $< ${LDFLAGS} |
30 | 30 | ||
31 | dmenu: dmenu.o draw.o | 31 | draw/libdraw.a: |
32 | @echo CC -o $@ | 32 | @cd draw && make |
33 | @${CC} -o $@ $+ ${LDFLAGS} | ||
34 | 33 | ||
35 | clean: | 34 | clean: |
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 | ||
39 | dist: clean | 39 | dist: 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} |