summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-18 14:05:49 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-18 14:05:49 +0000
commit792d6d6725c7d80d223f5cccd9ee0c5b07229e9a (patch)
tree90c154aece9a0439b6b0eca8bd202e0f191b7507
parent682808a251c56edc2f3fb6fff490f051e360f8bb (diff)
Fix unit-cc when build is not a direct subdirectory of source; create make rule for GNUmakefile
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11746 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--.Makefile.inc3
-rwxr-xr-xmake/unit-cc.pl2
2 files changed, 4 insertions, 1 deletions
diff --git a/.Makefile.inc b/.Makefile.inc
index 1eda95f80..abb1393e9 100644
--- a/.Makefile.inc
+++ b/.Makefile.inc
@@ -155,6 +155,9 @@ install: target@EXTRA_DIR@
@echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
@echo "*************************************"
+@GNU_ONLY GNUmakefile: .Makefile.inc configure .config.cache
+@GNU_ONLY ./configure -update
+
clean:
@echo Cleaning...
@rm -f src/inspircd src/modes/modeclasses.a
diff --git a/make/unit-cc.pl b/make/unit-cc.pl
index 3a40457f2..75c206d8c 100755
--- a/make/unit-cc.pl
+++ b/make/unit-cc.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use strict;
use warnings;
-BEGIN { push @INC, '..'; }
+BEGIN { push @INC, $ENV{SOURCEPATH}; }
use make::configure;
my $file = shift;