X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Frun-cc.pl;h=d5c62333ced8fc8af5d42b828ccfe2e8bdbce535;hb=235864add961270140c956647d783fa79b5f7120;hp=4c5bb18cb39060212fae9e8d91225364eecc2b9c;hpb=ca571fc1bfa87da2d6b4b8b2d01c90991e14e106;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/run-cc.pl b/make/run-cc.pl index 4c5bb18cb..d5c62333c 100755 --- a/make/run-cc.pl +++ b/make/run-cc.pl @@ -4,8 +4,8 @@ # | Inspire Internet Relay Chat Daemon | # +------------------------------------+ # -# InspIRCd: (C) 2002-2009 InspIRCd Development Team -# See: http://www.inspircd.org/wiki/index.php/Credits +# InspIRCd: (C) 2002-2010 InspIRCd Development Team +# See: http://wiki.inspircd.org/Credits # # This program is free but copyrighted software; see # the file COPYING for details. @@ -125,14 +125,18 @@ if ($cc eq "ar") { { if ($n =~ /\.cpp$/) { + my $f = $n; + if (defined $ENV{SOURCEPATH}) { + $f =~ s#^$ENV{SOURCEPATH}/src/##; + } if ($action eq "BUILD") { - $name .= " " . $n; + $name .= " " . $f; } else { $action = "BUILD"; - $name = $n; + $name = $f; } } elsif ($action eq "BUILD") # .cpp has priority.