projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c880098
)
Add backup and changelog rules to Makefile
author
Antonio Ospite <ospite@studenti.unina.it>
Sat, 7 Jan 2012 02:16:17 +0000
(
03:16
+0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Sat, 7 Jan 2012 02:16:17 +0000
(
03:16
+0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
ed57b89
..
42bb562
100644
(file)
--- 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