]> Sergey Matveev's repositories - nnn.git/commitdiff
Use a var for dist files and remove queue.h
authorlostd <lostd@2f30.org>
Fri, 14 Nov 2014 13:47:18 +0000 (15:47 +0200)
committerlostd <lostd@2f30.org>
Fri, 14 Nov 2014 13:47:18 +0000 (15:47 +0200)
Makefile

index ed40ea978ef2a91731b47c34afef5409645d2d25..85114c72e461ac589ad2898369fe57637c144d3c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@ MANPREFIX = $(PREFIX)/man
 #CFLAGS += -g
 LDLIBS = -lncursesw
 
+DISTFILES = noice.c strlcat.c strlcpy.c util.h config.def.h\
+    noice.1 Makefile README LICENSE
 OBJ = noice.o strlcat.o strlcpy.o
 BIN = noice
 
@@ -31,7 +33,7 @@ uninstall:
 
 dist:
        mkdir -p noice-$(VERSION)
-       cp LICENSE Makefile README config.def.h noice.1 noice.c queue.h strlcat.c strlcpy.c util.h noice-$(VERSION)
+       cp $(DISTFILES) noice-$(VERSION)
        tar -cf noice-$(VERSION).tar noice-$(VERSION)
        gzip noice-$(VERSION).tar
        rm -rf noice-$(VERSION)