Merge branch 'pu'
[jungerl.git] / lib / gtkNode / src / mk.deps
blob5beb5357970808866d32c3cc0fd05cbf31c7c963
1 #!/bin/tcsh
2 if ( -f $3 ) \rm $3
3 ls *erl >& /dev/null
4 if ( ! $status) then
5 foreach f ( *erl )
6 echo -n $1/$f:r".beam": | cat >> $3
7 foreach i ( `grep -E "\-include\(" $f | cut -f2 -d'"'` )
8 echo -n " $2/$i " | cat >> $3
9 end
10 echo $f | cat >> $3
11 echo ' $('$4')' $f | cat >> $3
12 end
13 else
14 touch $3
15 endif