Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd dist target - spoon - dwm status utility (2f30 fork)
git clone git://src.adamsgaard.dk/spoon
Log
Files
Refs
LICENSE
---
commit 20a26c2c7e1b352771bda8dad88573fdbcb3ade2
parent 8935e685dc992cdfb2d115976801690713fdc05f
Author: lostd <[email protected]>
Date: Sun, 15 May 2016 14:29:10 +0100
Add dist target
Diffstat:
M Makefile | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
---
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
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.