[cc65] implicit make rules delete temp files, and a da65 request (was: da65 hangs in infinite loop)

From: MagerValp <MagerValp1cling.gu.se>
Date: 2007-06-12 11:26:24
Dan & Uz, thanks. I'll recompile later. For now my workaround was a
bytetable, as suggested.

Since there are a few Makefile gurus here, I'd like some help with
another problem: when you have a chain of implicit rules, like so:

%.html: %.s
	ca65html --colorize --replaceext $<

%.s: %.info
	da65 -i $<
	$(CLEANDA) $@
#	ca65 $@ && rm $(@:.s=.o)

%.info: %.d
	$(MAKEINFO) $< $@

FILES = 01-BOOT-1000 08-MUSI-9a00 boot-0-3000 boot-1-b800 boot-2-b000 subs ult3 ultima3 updt shp3 shp4 ddrw

all: $(FILES:=.html)

when you make all, the chain builds .d -> .info -> .s -> .html. The
problem is that (GNU) make deletes the .s files, and I want to keep
them. Is there a way of saving them without resorting to interim
targets?

PS: as you can see I assemble each generated .s to verify that the
    disassembled file is syntactically correct. Would it be possible
    to add a flag to da65 (like -a/--assemble) that automatically does
    this?

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jun 12 11:26:32 2007

This archive was generated by hypermail 2.1.8 : 2007-06-12 11:26:34 CEST