mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make, scripts: Re-add files necessary for building ytools
Re-add everthing needed for building and packaging ytools. This is a big commit, 2002 lines of code. It mostly consists of C/C++ machinery, plus some documentation-related stuff. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0a9340af49
commit
bf16c6714b
27 changed files with 1975 additions and 0 deletions
16
make/backup.mk
Normal file
16
make/backup.mk
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
BACKUP_SOURCE ?= .
|
||||
BACKUP_TARGET ?= ..
|
||||
BACKUP_DATE ?= $(shell date +'%y%m%d-%H%M%S')
|
||||
|
||||
_BACKUP_SOURCE = $(notdir $(shell cd $(BACKUP_SOURCE); $(PWD)))
|
||||
|
||||
ifndef BACKUP_MK_INCLUDED
|
||||
BACKUP_MK_INCLUDED = true
|
||||
|
||||
backup: distclean
|
||||
tar -C .. $(_BACKUP_SOURCE) -cjf $(BACKUP_TARGET)/$(_BACKUP_SOURCE)-$(BACKUP_DATE).tar.bz2
|
||||
|
||||
purge-last-backup:
|
||||
$(RM) -f $(shell ls $(BACKUP_TARGET)/$(_BACKUP_SOURCE)-*.tar.bz2 | tail -1)
|
||||
|
||||
endif # ifndef BACKUP_MK_INCLUDED
|
||||
Loading…
Add table
Add a link
Reference in a new issue