[hackers] [quark] Stop hiding what we're doing in the Makefile || FRIGN

From: <git_AT_suckless.org>
Date: Fri, 2 Sep 2016 10:50:57 +0200 (CEST)

commit cd2893965f901310e44466a53c19a703b0ece107
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Fri Sep 2 10:49:42 2016 +0200
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Fri Sep 2 10:49:42 2016 +0200

    Stop hiding what we're doing in the Makefile
    
    On Gentoo for instance they are literally stripping the _AT_'s from our
    Makefiles to make the output usable. It makes sense to remove this
    abstraction.

diff --git a/Makefile b/Makefile
index 47fce24..4db2558 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -11,29 +11,26 @@ quark.o: quark.c config.h config.mk
         ${CC} -c ${CFLAGS} quark.c
 
 config.h:
- _AT_echo creating $@ from config.def.h
- _AT_cp config.def.h $@
+ cp config.def.h $_AT_
 
 clean:
         rm -f quark quark.o quark-${VERSION}.tar.gz
 
 dist: clean
- _AT_echo creating dist tarball
- _AT_mkdir -p quark-${VERSION}
- _AT_cp -R LICENSE Makefile arg.h config.def.h config.mk quark.1 quark.c quark-${VERSION}
- _AT_tar -cf quark-${VERSION}.tar quark-${VERSION}
- _AT_gzip quark-${VERSION}.tar
- _AT_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
- _AT_echo installing executable file to ${DESTDIR}${PREFIX}/bin
- _AT_mkdir -p ${DESTDIR}${PREFIX}/bin
- _AT_cp -f quark ${DESTDIR}${PREFIX}/bin
- _AT_chmod 755 ${DESTDIR}${PREFIX}/bin/quark
- _AT_echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
- _AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
- _AT_cp quark.1 ${DESTDIR}${MANPREFIX}/man1/quark.1
- _AT_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
Received on Fri Sep 02 2016 - 10:50:57 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 02 2016 - 11:00:23 CEST