15 November 2006, 17:10 | #1 |
Mostly Harmless
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,149
|
SAS/C included makefiles ?
Is it possible using smake to "include" another makefile from your current makefile?
|
19 November 2006, 21:20 | #2 |
Registered User
Join Date: Nov 2006
Location: Stockholm, Sweden
Posts: 237
|
I never figured this out myself back when I was using smake. As a workaround, I concatenated the various pieces together myself and then ran smake on the result.
Let's say you have one makefile called "smakefile", and you wish it to include "smakefile.common" when making the target named "all". Then do the following: * Rename "smakefile" into "smakefile.local" Create a new "smakefile" which contains the following lines: Code:
.PHONY : all all : @type smakefile.common >t:smakefile.tmp @type smakefile.local >>t:smakefile.tmp @smake -f t:smakefile.tmp |
19 November 2006, 23:25 | #3 |
Mostly Harmless
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,149
|
Good idea, I'll try that!
Thanks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
100 Demo Compilation - 6 ADFs included | sdaonline | Nostalgia & memories | 5 | 28 March 2013 10:18 |
Playing CD32 Games that have Wav files Included? | Kitty | New to Emulation or Amiga scene | 4 | 04 October 2009 11:55 |
Its here ! (Pr0n Included, lots of it) | asm1 | Hardware pics | 21 | 27 February 2009 14:22 |
Wings of Fury (uncompressed savestate included) | hipoonios | project.Sprites | 3 | 29 September 2008 07:51 |
|
|