summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-06-27 16:14:30 +0200
committerGitHub <noreply@github.com>2016-06-27 16:14:30 +0200
commit292c2b90c8a9c7a05f34bdb6900e160f992e4f69 (patch)
tree33dbcc223cbd2b0854cf3a1c05afe6a92a847e0d
parent1c9f97682fe2a38d1ad80b059d20e316ccf8b65b (diff)
parent0d7d6a9d0909f014e7557b84b2115ca6ff387bf9 (diff)
Merge pull request #1186 from SaberUK/master+build-system-cleanup
Pass INSPIRCD_VERBOSE through the environment to unit-cc.
-rwxr-xr-xmake/calcdep.pl10
-rw-r--r--make/template/main.mk15
-rwxr-xr-xmake/unit-cc.pl3
3 files changed, 10 insertions, 18 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl
index f8f50497e..882e75f22 100755
--- a/make/calcdep.pl
+++ b/make/calcdep.pl
@@ -120,7 +120,7 @@ END
print MAKE <<END;
bin/inspircd: $core_mk
- @\$(SOURCEPATH)/make/unit-cc.pl core-ld\$(VERBOSE) \$\@ \$^ \$>
+ @\$(SOURCEPATH)/make/unit-cc.pl core-ld \$\@ \$^ \$>
inspircd: bin/inspircd
@@ -164,10 +164,10 @@ END
print MAKE <<END;
obj/ld-extra.cmd: $core_src
- \@\$(SOURCEPATH)/make/unit-cc.pl gen-ld\$(VERBOSE) \$\@ \$^ \$>
+ \@\$(SOURCEPATH)/make/unit-cc.pl gen-ld \$\@ \$^ \$>
bin/inspircd: obj/ld-extra.cmd $core_mk
- \@\$(SOURCEPATH)/make/unit-cc.pl static-ld\$(VERBOSE) \$\@ \$^ \$>
+ \@\$(SOURCEPATH)/make/unit-cc.pl static-ld \$\@ \$^ \$>
inspircd: bin/inspircd
@@ -231,7 +231,7 @@ sub dep_cpp($$$) {
gendep $file;
print MAKE "$out: $file $f2dep{$file}\n";
- print MAKE "\t@\$(SOURCEPATH)/make/unit-cc.pl $type\$(VERBOSE) \$\@ \$(SOURCEPATH)/src/$file \$>\n";
+ print MAKE "\t@\$(SOURCEPATH)/make/unit-cc.pl $type \$\@ \$(SOURCEPATH)/src/$file \$>\n";
}
sub dep_so($) {
@@ -256,7 +256,7 @@ sub dep_dir($$) {
if (@ofiles) {
my $ofiles = join ' ', @ofiles;
print MAKE "$outdir.so: $ofiles\n";
- print MAKE "\t@\$(SOURCEPATH)/make/unit-cc.pl link-dir\$(VERBOSE) \$\@ ${\SOURCEPATH}/src/$dir \$^ \$>\n";
+ print MAKE "\t@\$(SOURCEPATH)/make/unit-cc.pl link-dir \$\@ ${\SOURCEPATH}/src/$dir \$^ \$>\n";
return 1;
} else {
return 0;
diff --git a/make/template/main.mk b/make/template/main.mk
index 78de3a8d1..bff065736 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -114,12 +114,9 @@ FOOTER = finishmessage
@TARGET GNU_MAKE SOURCEPATH = $(shell /bin/pwd)
@TARGET BSD_MAKE SOURCEPATH != /bin/pwd
-@IFDEF INSPIRCD_VERBOSE
- VERBOSE = -v
-@ELSE
+@IFNDEF INSPIRCD_VERBOSE
@TARGET GNU_MAKE MAKEFLAGS += --silent
@TARGET BSD_MAKE MAKE += -s
- VERBOSE =
@ENDIF
@IFDEF INSPIRCD_STATIC
@@ -130,7 +127,7 @@ FOOTER = finishmessage
# things like -Wfatal-errors if they wish to.
CORECXXFLAGS += $(CXXFLAGS)
-@DO_EXPORT CXX CORECXXFLAGS LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS
+@DO_EXPORT CXX CORECXXFLAGS LDLIBS PICLDFLAGS INSPIRCD_VERBOSE SOCKETENGINE CORELDFLAGS
@DO_EXPORT SOURCEPATH BUILDPATH INSPIRCD_STATIC
# Default target
@@ -281,15 +278,11 @@ deinstall:
-rm -f $(BASE)/org.inspircd.plist
configureclean:
+ rm -f .gdbargs
rm -f BSDmakefile
rm -f GNUmakefile
rm -f include/config.h
- rm -f inspircd
- rm -f inspircd.1
- rm -f inspircd-genssl.1
- -rm -f inspircd.service
- -rm -f org.inspircd.plist
- -rm -f @CONFIGURE_CACHE_FILE@
+ rm -rf @CONFIGURE_DIRECTORY@
distclean: clean configureclean
-rm -rf $(SOURCEPATH)/run
diff --git a/make/unit-cc.pl b/make/unit-cc.pl
index aba14a0bc..a06d7b10f 100755
--- a/make/unit-cc.pl
+++ b/make/unit-cc.pl
@@ -36,7 +36,6 @@ chdir $ENV{BUILDPATH};
my $type = shift;
my $out = shift;
-my $verbose = ($type =~ s/-v$//);
our %config = read_configure_cache();
@@ -61,7 +60,7 @@ exit 1;
sub message($$$) {
my ($type, $file, $command) = @_;
- if ($verbose) {
+ if ($ENV{INSPIRCD_VERBOSE}) {
print "$command\n";
} else {
print_format "\t<|GREEN $type:|>\t\t$file\n";