From ded32ff3a9b60ed486fe504f369a3ffcac5ca481 Mon Sep 17 00:00:00 2001 From: huxuan Date: Thu, 16 Apr 2020 14:15:14 +0800 Subject: [PATCH] Dist related make command and .gitignore. --- .gitignore | 1 + Makefile | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 33fa39f..4f3fd50 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,5 @@ *.cls *.pdf *.swp +*.tar.gz .DS_Store diff --git a/Makefile b/Makefile index 7c175a7..b486618 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ PACKAGE=resumecls -.PHONY: all cls doc clean distclean +.PHONY: all cls doc clean distclean dist all: doc @@ -54,4 +54,10 @@ clean: distclean: clean -@rm -f \ *.cls \ - *.pdf + *.pdf \ + *.tar.gz + +dist: distclean cls doc + touch $(PACKAGE).tar.gz + tar zcvf $(PACKAGE).tar.gz ./$(PACKAGE).pdf --exclude=$(PACKAGE).tar.gz \ + --exclude-vcs --exclude-vcs-ignores .