diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8b6861b --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +NAME=setup +VERSION := $(shell awk '/Version:/ { print $$2 }' $(NAME).spec) +TAG=$(NAME)-$(VERSION) + + +check: + @echo Sanity checking selected files.... + bash -n bashrc + bash -n profile + ./uidgidlint ./uidgid + ./serviceslint ./services + +tag-archive: check + @git tag -a -m "Tag as $(TAG)" -f $(TAG) + +create-archive: + @git-archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 > $(NAME)-$(VERSION).tar.bz2 + @echo "The archive is at $(NAME)-$(VERSION).tar.bz2" + +archive: tag-archive create-archive + +clean: + rm -f *.bz2 |