From 192fa7d3138ccb5929dc9af8de3395d6ea25619c Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:04:48 +0000 Subject: Fix build of m_spanningtree and display of dependency regeneration git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11557 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/calcdep.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'make/calcdep.pl') diff --git a/make/calcdep.pl b/make/calcdep.pl index 2b6742be3..bcbb7cbd0 100755 --- a/make/calcdep.pl +++ b/make/calcdep.pl @@ -16,8 +16,10 @@ open OUT, '>', $out or die "Could not write $out: $!"; my $cc_deps = qx($ENV{CC} $ENV{FLAGS} -MM $file); $cc_deps =~ s/.*?:\s*//; -my $ext = $file =~ m#(modules|commands)/# ? '.so' : '.o'; +my $ext = $file =~ m#(modules|commands)/[^/]+$# ? '.so' : '.o'; print OUT "$base$ext: $cc_deps"; print OUT "\t@../make/unit-cc.pl \$(VERBOSE) $file $base$ext\n"; print OUT "$base.d: $cc_deps"; +print OUT "\t\@\$(VDEP_IN)\n"; print OUT "\t../make/calcdep.pl $file\n"; +print OUT "\t\@\$(VDEP_OUT)\n"; -- cgit v1.2.3