From: Antonio Ospite Date: Sat, 7 Jan 2012 02:16:17 +0000 (+0100) Subject: Add backup and changelog rules to Makefile X-Git-Tag: v0.1.0~35 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/388c6185b625edbc7d2b89fce834f65053a7b164?ds=inline Add backup and changelog rules to Makefile --- diff --git a/Makefile b/Makefile index ed57b89..42bb562 100644 --- a/Makefile +++ b/Makefile @@ -50,5 +50,15 @@ install: picoproj install -d $(DESTDIR)$(bindir) install -m 755 picoproj $(DESTDIR)$(bindir) +BACKUP_PREFIX=libpicoproj-$(shell date +%Y%m%d%H%M) +backup: + git archive \ + -o $(BACKUP_PREFIX).tar.gz \ + --prefix=$(BACKUP_PREFIX)/ \ + HEAD + +changelog: + git log --pretty="format:%ai %aN <%aE>%n%n%x09* %s%d%n" > ChangeLog + clean: rm -rf *~ *.o picoproj