X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/64bea6dc25f83972f751e55739049409efd9010a..388c6185b625edbc7d2b89fce834f65053a7b164:/Makefile diff --git a/Makefile b/Makefile index 20b44c4..42bb562 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,7 @@ bindir := $(PREFIX)/sbin all: picoproj CFLAGS += -D_BSD_SOURCE # for htole32() +CFLAGS += -D_POSIX_C_SOURCE=2 # for getopt() picoproj: picoproj.o @@ -49,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