X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=66040d9284364016a0477c7714ec9dafd9009889;hb=665488a6eedeecf743e44bd9624105c8b47c4f97;hp=fc8dcd2690dc1772ae617eff958f4dd527041f7d;hpb=4c7866ec55d284e8a29ca682ab79c11893a9cb6c;p=dmenu.git diff --git a/Makefile b/Makefile index fc8dcd2..66040d9 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,12 @@ # dmenu - dynamic menu -# (C)opyright MMVI Anselm R. Garbe +# (C)opyright MMVI-MMVII Anselm R. Garbe include config.mk -SRC = draw.c main.c util.c +SRC = main.c util.c OBJ = ${SRC:.c=.o} all: options dmenu - @echo finished options: @echo dmenu build options: @@ -19,14 +18,10 @@ options: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: dmenu.h config.h - -config.h: - @echo creating $@ from config.default.h - @cp config.default.h $@ +${OBJ}: dmenu.h config.mk dmenu: ${OBJ} - @echo LD $@ + @echo CC -o $@ @${CC} -o $@ ${OBJ} ${LDFLAGS} @strip $@ @@ -37,8 +32,7 @@ clean: dist: clean @echo creating dist tarball @mkdir -p dmenu-${VERSION} - @cp -R LICENSE Makefile README config.*.h config.mk \ - dmenu.1 dmenu.h ${SRC} dmenu-${VERSION} + @cp -R LICENSE Makefile README config.mk dmenu.1 dmenu.h ${SRC} dmenu-${VERSION} @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} @gzip dmenu-${VERSION}.tar @rm -rf dmenu-${VERSION} @@ -50,7 +44,7 @@ install: all @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @cp -f dmenu.1 ${DESTDIR}${MANPREFIX}/man1 + @sed 's/VERSION/${VERSION}/g' < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1 uninstall: