commit 2faf1300403d6b92a9d65def5e12c29a15ab065f parent e35ab28bc98790503a15a9accea0cd7bbf068d19 Author: sin <sin@2f30.org> Date: Tue, 12 Jul 2016 18:17:53 +0100 Add make dist target Diffstat:
M | Makefile | | | 12 | ++++++++++-- |
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -2,12 +2,20 @@ VERSION = 0.1 CPPFLAGS = -DDEBUG CFLAGS = -Wall LDLIBS = -lsndio -lcurses -lm +DISTFILES = ncmixer.c LICENSE Makefile README OBJ = ncmixer.o BIN = ncmixer all: $(BIN) +dist: + mkdir -p ncmixer-$(VERSION) + cp $(DISTFILES) ncmixer-$(VERSION) + tar -cf ncmixer-$(VERSION).tar ncmixer-$(VERSION) + gzip ncmixer-$(VERSION).tar + rm -rf ncmixer-$(VERSION) + clean: - rm -f $(OBJ) $(BIN) + rm -f $(OBJ) $(BIN) ncmixer-$(VERSION).tar.gz -.PHONY: all clean +.PHONY: all dist clean