X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/a878cffa75e0ce890f79ccb012775f6b23238e06..98446344ce24a7fee8f1609d4d4e655b136b7fbf:/Makefile diff --git a/Makefile b/Makefile index ed57b89..514621b 100644 --- a/Makefile +++ b/Makefile @@ -44,11 +44,21 @@ all: picoproj CFLAGS += -D_BSD_SOURCE # for htole32() CFLAGS += -D_POSIX_C_SOURCE=2 # for getopt() -picoproj: picoproj.o +picoproj: picoproj.o am7xxx.o 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