spoon

tool to set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit 20a26c2c7e1b352771bda8dad88573fdbcb3ade2
parent 8935e685dc992cdfb2d115976801690713fdc05f
Author: lostd <lostd@2f30.org>
Date:   Sun May 15 14:29:10 +0100

Add dist target

Diffstat:
Makefile | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -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 @@ -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