aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fd103de..72b5053 100644
--- a/Makefile
+++ b/Makefile
@@ -23,11 +23,19 @@ $(BIN): $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
clean:
- rm -f $(BIN) $(OBJ)
+ rm -f $(BIN) $(OBJ) ttym-$(VERSION).tar.gz
distclean: clean
rm -f config.h
+dist: clean
+ mkdir -p ttym-$(VERSION)
+ cp -R LICENSE Makefile README.md config.def.h config.mk timer.1 ttym.c \
+ patches ttym-$(VERSION)
+ tar -cf ttym-$(VERSION).tar ttym-$(VERSION)
+ gzip ttym-$(VERSION).tar
+ rm -rf ttym-$(VERSION)
+
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN)
@@ -40,4 +48,4 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
rm -f $(DESTDIR)$(MANPREFIX)/man1/timer.1
-.PHONY: all clean distclean install uninstall
+.PHONY: all clean distclean dist install uninstall