Support #include directives in external sources files.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Thu, 18 Jun 2015 18:08:53 +0000 (20:08 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Thu, 25 Jun 2015 11:27:26 +0000 (13:27 +0200)
mcs/build/gensources.sh

index bc76b711d39879770af0f547f8186669c295c245..db7bf638bed6ba87b23dda367abd1e874c72f0a1 100644 (file)
@@ -34,7 +34,9 @@ rm -f $outfile.makefrag
 process_includes $incfile $outfile.inc
 
 if test x$extfile != x -a -f "$extfile"; then
-       cat $extfile >> $outfile.inc
+       process_includes $extfile $outfile.ext.inc
+       cat $outfile.ext.inc >> $outfile.inc
+       rm -f $outfile.ext.inc
 fi
 
 sort -u $outfile.inc > $outfile.inc_s