quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit cd2893965f901310e44466a53c19a703b0ece107
parent 11481ed250a4ff4e9585a35cbe46fb695e45c8dd
Author: FRIGN <dev@frign.de>
Date:   Fri,  2 Sep 2016 10:49:42 +0200

Stop hiding what we're doing in the Makefile

On Gentoo for instance they are literally stripping the @'s from our
Makefiles to make the output usable. It makes sense to remove this
abstraction.

Diffstat:
MMakefile | 29+++++++++++++----------------
1 file changed, 13 insertions(+), 16 deletions(-)

diff --git a/Makefile b/Makefile @@ -11,29 +11,26 @@ quark.o: quark.c config.h config.mk ${CC} -c ${CFLAGS} quark.c config.h: - @echo creating $@ from config.def.h - @cp config.def.h $@ + cp config.def.h $@ clean: rm -f quark quark.o quark-${VERSION}.tar.gz dist: clean - @echo creating dist tarball - @mkdir -p quark-${VERSION} - @cp -R LICENSE Makefile arg.h config.def.h config.mk quark.1 quark.c quark-${VERSION} - @tar -cf quark-${VERSION}.tar quark-${VERSION} - @gzip quark-${VERSION}.tar - @rm -rf quark-${VERSION} + mkdir -p quark-${VERSION} + cp -R LICENSE Makefile arg.h config.def.h config.mk quark.1 \ + quark.c quark-${VERSION} + tar -cf quark-${VERSION}.tar quark-${VERSION} + gzip quark-${VERSION}.tar + rm -rf quark-${VERSION} install: all - @echo installing executable file to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f quark ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/quark - @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 - @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @cp quark.1 ${DESTDIR}${MANPREFIX}/man1/quark.1 - @chmod 644 ${DESTDIR}${MANPREFIX}/man1/quark.1 + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f quark ${DESTDIR}${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/quark + mkdir -p ${DESTDIR}${MANPREFIX}/man1 + cp quark.1 ${DESTDIR}${MANPREFIX}/man1/quark.1 + chmod 644 ${DESTDIR}${MANPREFIX}/man1/quark.1 uninstall: rm -f ${DESTDIR}${PREFIX}/bin/quark