[hackers] [quark] Simplify Makefile and package properly || FRIGN

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

commit 11481ed250a4ff4e9585a35cbe46fb695e45c8dd
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Fri Sep 2 10:43:27 2016 +0200
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Fri Sep 2 10:44:43 2016 +0200

    Simplify Makefile and package properly

diff --git a/Makefile b/Makefile
index a4bb320..47fce24 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -2,34 +2,25 @@
 
 include config.mk
 
-all: options quark
-
-options:
- _AT_echo quark build options:
- _AT_echo "CFLAGS = ${CFLAGS}"
- _AT_echo "LDFLAGS = ${LDFLAGS}"
- _AT_echo "CC = ${CC}"
+all: quark
 
 quark: quark.o config.h config.mk
- _AT_echo CC -o $@
- _AT_${CC} -o $@ quark.o ${LDFLAGS}
+ ${CC} -o $_AT_ quark.o ${LDFLAGS}
 
 quark.o: quark.c config.h config.mk
- _AT_echo CC -c quark.c
- _AT_${CC} -c ${CFLAGS} quark.c
+ ${CC} -c ${CFLAGS} quark.c
 
 config.h:
         _AT_echo creating $@ from config.def.h
         _AT_cp config.def.h $@
 
 clean:
- _AT_echo cleaning
- _AT_rm -f quark quark.o quark-${VERSION}.tar.gz
+ 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.h config.mk quark.1 quark.c 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}
_AT_@ -45,9 +36,7 @@ install: all
         _AT_chmod 644 ${DESTDIR}${MANPREFIX}/man1/quark.1
 
 uninstall:
- _AT_echo removing executable file from ${DESTDIR}${PREFIX}/bin
- _AT_rm -f ${DESTDIR}${PREFIX}/bin/quark
- _AT_echo removing manual from ${DESTDIR}${MANPREFIX}/man1
- _AT_rm -f ${DESTDIR}${MANPREFIX}/man1/quark.1
+ rm -f ${DESTDIR}${PREFIX}/bin/quark
+ rm -f ${DESTDIR}${MANPREFIX}/man1/quark.1
 
 .PHONY: all options clean dist install uninstall
Received on Fri Sep 02 2016 - 10:44:48 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 02 2016 - 10:48:22 CEST