#!/usr/bin/env wmake subdirs=dos w9x all: .SYMBOLIC for %i in ($(subdirs)) do %make %i/$^@ clean: .SYMBOLIC for %i in ($(subdirs)) do %make %i/$^@ # This would be so much easier with a multi-line macro... sd1=cd $^: !ifdef debug sd2=wmake $^. debug=$(debug) !else sd2=wmake $^. !endif sd3=cd .. dos/all: .SYMBOLIC $(sd1) $(sd2) $(sd3) dos/clean: .SYMBOLIC $(sd1) $(sd2) $(sd3) w9x/all: .SYMBOLIC $(sd1) $(sd2) $(sd3) w9x/clean: .SYMBOLIC $(sd1) $(sd2) $(sd3) # Build a zip with the driver binaries zip: dos/all w9x/all .SYMBOLIC zip --DOS-names -fz- chu.zip dos/chudisk.sys dos/chud.exe w9x/chudisk.pdr w9x/chudisk.inf srczip: .SYMBOLIC zip -fz- chusrc.zip COPYING README.md makefile inc/*.h & dos/makefile dos/*.c dos/*.h dos/*.lnk & w9x/makefile w9x/*.c w9x/*.h w9x/*.lnk w9x/*.inf w9x/inc/*.h & linux/makefile linux/*.c linux/*.h linux/*.sh