tAdd dist target - spoon - dwm status utility (2f30 fork)
 (HTM) git clone git://src.adamsgaard.dk/spoon
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 20a26c2c7e1b352771bda8dad88573fdbcb3ade2
 (DIR) parent 8935e685dc992cdfb2d115976801690713fdc05f
 (HTM) Author: lostd <lostd@2f30.org>
       Date:   Sun, 15 May 2016 14:29:10 +0100
       
       Add dist target
       
       Diffstat:
         M Makefile                            |      13 +++++++++++--
       
       1 file changed, 11 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       t@@ -1,14 +1,16 @@
       +VERSION = 0.1
        PREFIX = /usr/local
        CFLAGS = -I/usr/X11R6/include -I/usr/local/include
        LDFLAGS = -L/usr/X11R6/lib -L/usr/local/lib
        LDLIBS = -lxkbfile -lX11 -lmpdclient
       +DISTFILES = spoon.c Makefile LICENSE
        OBJ = spoon.o
        BIN = spoon
        
        all: $(BIN)
        
        clean:
       -        rm -f $(OBJ) $(BIN)
       +        rm -f $(OBJ) $(BIN) $(BIN)-$(VERSION).tar.gz
        
        install: all
                mkdir -p $(DESTDIR)$(PREFIX)/bin
       t@@ -17,7 +19,14 @@ install: all
        uninstall:
                rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
        
       -.PHONY: all clean install uninstall
       +dist:
       +        mkdir -p $(BIN)-$(VERSION)
       +        cp $(DISTFILES) $(BIN)-$(VERSION)
       +        tar -cf $(BIN)-$(VERSION).tar $(BIN)-$(VERSION)
       +        gzip $(BIN)-$(VERSION).tar
       +        rm -rf $(BIN)-$(VERSION)
       +
       +.PHONY: all clean install uninstall dist
        
        .SUFFIXES: .c .o