John Reimer Wrote:
[...]
My quickfix:
----- Snip ----
#!/bin/bash
# makemaker: create a Makefile in every subdir that contains
# .d files.
# Use like this:
# makemaker > all.mak
# and set up DC, DCSYSFLAGS, DCFLAGS, OBJEXT in the top
# Makefile
for d in `find $1 -type d`; do
cd $d
ls *.d >/dev/null 2>/dev/null
if [ $? == 0 ] ; then
rm -f Makefile
echo "SRC=" `ls *.d` > Makefile
echo 'OBJ= $(SRC:.d=$(OBJEXT))' >> Makefile
echo '%.obj: %.d' >> Makefile
echo -e '\t $(DC) $(DCSYSFLAGS) $(DCFLAGS) -c $<' >> Makefile
echo 'all: $(OBJ)' >> Makefile
echo 'clean:' >> Makefile
echo -e '\t rm $(OBJ)' >> Makefile
hasd=1
else
hasd=0
fi
cd - > /dev/null
if [ $hasd == 1 ] ; then
echo make -C $d all
fi
---- snap ---- Re: exe file size Max Samukha
- Re: exe file size RDMD BLS
- Re: exe file size RDMD Andrei Alexandrescu
- Re: exe file size John Reimer
- Re: exe file size Anders F Björklund
- Re: exe file size Jeffrey Rennie
- Re: exe file size Jarrett Billingsley
- Re: exe file size Lutger
- Re: exe file size John Reimer
- Re: exe file size John Reimer
- Re: exe file size TomD
- Re: exe file size John Reimer
- Re: exe file size TomD
- Re: exe file size Bill Baxter
- Re: exe file size John Reimer
- Re: exe file size John Reimer
- Re: exe file size Robert Fraser
- Re: exe file size John Reimer
- Re: exe file size Robert Fraser
- Re: exe file size John Reimer
