mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make: Add multiple inclusion preventers around makefile rules
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
a8b958b7cf
commit
4d8ff72147
4 changed files with 16 additions and 1 deletions
|
|
@ -4,9 +4,13 @@ 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