Article View: comp.sys.mac.oop.macapp3
Article #322Re: MacApp makefiles and OtherRsrcFiles
From: Sak Wathanasin
Date: Sat, 23 Jan 1993 10:28
Date: Sat, 23 Jan 1993 10:28
29 lines
1783 bytes
1783 bytes
In article <marshall-200193124922@hpsdr160.sdd.hp.com> (comp.sys.mac.oop.macapp3), marshall@sdd.hp.com (Marshall Clow) writes:
> I also had this problem, and this is my "solution". I was building an
> app called "XXY", and my resource file was named "XXY.rsrc". Every time
> I did a complete build (from scratch) as well as every now and then
> (i.e, no apparent pattern), my XXY.rsrc file became 0 bytes long. I changed
> it's name to "XXY Views.rsrc", changed the makefile, and I have had no
> further problems (so far).
>
> What I suspect is that somewhere, MABuild is making a temp file named
> "{AppName}.rsrc".
MABuild has a default rule that "knows" how to create an .rsrc file from
a .r file. It has another built in rule that automatically includes
a "{AppName}.r" in a build. Unfortunately, most people have an {AppName}.r
file, and when it gets Rez'ed, it creates an "{AppName}.rsrc" unless you've
overridden the default rule in your Makefile.
Renaming either the .r or .rsrc file so that they have different roots should
do the trick; I'd imagine the latter is more convenient for most.
Sak Wathanasin
Network Analysis Limited
178 Wainbody Ave South, Coventry CV3 6BX, UK
uucp: ...!uknet!nan!sw Phone: (+44) 203 419996
AppleLink: NAN.LTD Internet: sw@network-analysis-ltd.co.uk
Technical Details
Message-ID:
<D2150050.odjhpu@nan.network-analysis-ltd.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!uknet!network-analysis-ltd.co.uk!swShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!uknet!network-analysis-ltd.co.uk!sw From: sw@network-analysis-ltd.co.uk (Sak Wathanasin) Newsgroups: comp.sys.mac.oop.macapp3 Subject: Re: MacApp makefiles and OtherRsrcFiles Message-ID: <D2150050.odjhpu@nan.network-analysis-ltd.co.uk> Date: 23 Jan 93 10:28:09 GMT Reply-To: sw@network-analysis-ltd.co.uk Organization: Network Analysis Ltd Lines: 29 X-Mailer: uAccess - Macintosh Release: 1.6v1