X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2FMakefile;h=5b69d9937fd1444b5a74bfcb1b63f64922057222;hb=a8bed8a7dd8bd305251eefb69e5f66c35bd53112;hp=23904e79e39430d0db2f4746020787d4257a517d;hpb=7ebfb4a2306b9fea07e0bd6c329d73558d63728d;p=fw%2Fsdcc diff --git a/sim/ucsim/Makefile b/sim/ucsim/Makefile index 23904e79..5b69d993 100644 --- a/sim/ucsim/Makefile +++ b/sim/ucsim/Makefile @@ -116,21 +116,24 @@ dep: putcopyright: 'put(c)' -s $(STARTYEAR) *.cc *.h *.y *.l +start: + date '+%Y.%m.%d-%H:%M' >.start + newer: distclean - @if [ -f start ]; then \ + @if [ -f .start ]; then \ tar cvf - \ - `find . -newer start -type f -print` |\ - gzip -9c >ucsim-newer-`date '+%Y.%m.%d-%H:%M'`.tgz; \ + `find . -newer .start -type f -print` |\ + gzip -9c >ucsim-newer-`cat .start`_`date '+%Y.%m.%d-%H:%M'`_`hostname`.tgz; \ else \ - echo "start file not found.\n"; \ + echo ".start file not found.\n"; \ exit 1; \ fi print-newer: - @if [ -f start ]; then \ - find . -newer start -type f -print ;\ + @if [ -f .start ]; then \ + find . -newer .start -type f -print ;\ else \ - echo "start file not found.\n" ;\ + echo ".start file not found.\n" ;\ exit 1 ;\ fi