From 68b01d4620e96f71a7c24e12a4fb5196b341e45d Mon Sep 17 00:00:00 2001 From: Shawn Davis Date: Thu, 23 Dec 2021 20:13:25 -0600 Subject: [PATCH] Updated makefile to include backup option. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index d1bd729..d863e54 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ # The path to source code to be counted with cloc. PACKAGE_NAME := scripttease +# The name of the project on disk. +PROJECT_NAME := python-scripttease + # The directory where test coverage is generated. COVERAGE_PATH := docs/build/html/coverage @@ -17,6 +20,12 @@ help: @cat Makefile | grep "^#>" | sed 's/\#\> //g'; @echo "" +#> backup - Create a backup of the project. +backup: + cd ~/Work && tar -czvf $(PROJECT_NAME).tgz $(PROJECT_NAME); + mv ~/Work/$(PROJECT_NAME).tgz ~/Dropbox/backups/; + + #> dist - Create a distribution of the package. dist: cp DESCRIPTION.txt $(PACKAGE_NAME)/;