X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=Makefile;h=8f14a8c27751e6aefcfda5fe67ba724d7a8f28d5;hb=d6742ef8a6ce03f28ee9431ef51901ef712ffd76;hp=f011ad745d7209df693f2e00699c28b3c600091d;hpb=dec9a28863f388072be105e0950deb72ac719d48;p=dmenu.git diff --git a/Makefile b/Makefile index f011ad7..8f14a8c 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include config.mk -SRC = dmenu.c draw.c stest.c +SRC = drw.c dmenu.c stest.c util.c OBJ = ${SRC:.c=.o} all: options dmenu stest @@ -15,14 +15,18 @@ options: @echo "CC = ${CC}" .c.o: - @echo CC -c $< - @${CC} -c $< ${CFLAGS} + @echo CC $< + @${CC} -c ${CFLAGS} $< -${OBJ}: config.mk draw.h +config.h: + @echo creating $@ from config.def.h + @cp config.def.h $@ -dmenu: dmenu.o draw.o +${OBJ}: arg.h config.h config.mk drw.h + +dmenu: dmenu.o drw.o util.o @echo CC -o $@ - @${CC} -o $@ dmenu.o draw.o ${LDFLAGS} + @${CC} -o $@ dmenu.o drw.o util.o ${LDFLAGS} stest: stest.o @echo CC -o $@ @@ -35,7 +39,8 @@ clean: dist: clean @echo creating dist tarball @mkdir -p dmenu-${VERSION} - @cp LICENSE Makefile README config.mk dmenu.1 draw.h dmenu_path dmenu_run stest.1 ${SRC} dmenu-${VERSION} + @cp LICENSE Makefile README arg.h config.mk dmenu.1 drw.h util.h \ + dmenu_path dmenu_run stest.1 ${SRC} dmenu-${VERSION} @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} @gzip dmenu-${VERSION}.tar @rm -rf dmenu-${VERSION}