bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Monthly backup doesn't expand files, but which are in the


From: Joerg Schilling
Subject: Re: [Bug-tar] Monthly backup doesn't expand files, but which are in the archive
Date: Tue, 30 Aug 2016 17:58:41 +0200
User-agent: Heirloom mailx 12.5 7/5/10

Steffen Nurpmeso <address@hidden> wrote:

>  |Even though smake is much older than gmake, I planned to let it die \
>  |in 1997 but 
>
> No, please don't.  It is fast and if you provide an .y inference
> rule it rocks it.

I know that it is fast ;-)
It needs 8x less CPU time that GNU make and 10x less CPU time that SunPro make
if I let it run on an up-to-date schilytools tree.

Which rule are you missing?
It this not sufficient:

#       Yacc language
.y:
        $(YACC) $(YFLAGS) $<
        $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ y.tab.c
        $(RM) y.tab.c


#       Yacc language
.y.o:
        $(YACC) $(YFLAGS) $<
        $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c y.tab.c
        $(RM) y.tab.c

#       Yacc language to C
.y.c:
        $(YACC) $(YFLAGS) $<
        mv y.tab.c $@

If you like to add builtin rules, just edit /opt/schily/lib/defaults.smk
and report your enhancements.


>  |willing to change smake.
>
> My problem was that i had to diversify my makefile because we now
> need -lrt on Solaris (for nanosleep(2)), also for
> a privilege-separated mini support-program, and that didn't work
> out (it would gain GSSAPI libraries too, then, for example).  The
> result used $(<) in a non-inference rule, which smake didn't like.
> (Maybe gmake(1) would have complained with .POSIX, but which
> i don't use because gmake v3.81 bails for it.)
> Now fixed.

$< is a dynamic macro that is only defined with inference rules.

SunPro make and GNU make expand it to something not documented with explicit 
rules but they use different algorithms. The result is identical for aprox. 80% 
of the cases by chance only. 

For this reason, smake warns you that you are using a non-portable makefile.


>  |If you know of statements in STARvsGNUTAR that are no longer true (the \
>  |file was 
>  |last changed in 2007), please send a list of items that need to be \
>  |corrected.
>
> Ooooooh.  Puuuuuh.  I feel it, i feel it ... there is a burnout
> syndrome lingering on the horizon.  ._.
> Ciao.


If you feel better, please try to send a list.

Jörg

-- 
 EMail:address@hidden                    (home) Jörg Schilling D-13353 Berlin
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]