X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=SConstruct;h=18a33975f3461c432af2c56cb20dfd1bb5e8aba6;hb=2e7dc69c3a63bac0a9df1abbcece62c03112a1ab;hp=1c4c1dc1ecabf50c5922e33d46012c1e48b3f437;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/SConstruct b/SConstruct index 1c4c1dc..18a3397 100644 --- a/SConstruct +++ b/SConstruct @@ -57,12 +57,12 @@ env.Append( '$BOOSTIOSTREAMSLIB', '$BOOSTSIGNALSLIB', '$BOOSTFSLIB' ], TEST_EXTRA_LIBS = [ ], - PREFIX = '/usr/local', - LIBINSTALLDIR = '$PREFIX/lib', - BININSTALLDIR = '$PREFIX/bin', - INCLUDEINSTALLDIR = '$PREFIX/include', - OBJINSTALLDIR = '$LIBINSTALLDIR', - DOCINSTALLDIR = '$PREFIX/doc', + PREFIX = '#/dist', + LIBINSTALLDIR = '$PREFIX${syslayout and "/lib" or ""}', + BININSTALLDIR = '$PREFIX${syslayout and "/bin" or ""', + INCLUDEINSTALLDIR = '$PREFIX${syslayout and "/include" or ""}', + OBJINSTALLDIR = '$LIBINSTALLDIR${syslayout and "/$LIBINSTALLDIR/senf" or ""', + DOCINSTALLDIR = '$PREFIX/docs', CPP_INCLUDE_EXTENSIONS = [ '.h', '.hh', '.ih', '.mpp', '.cci', '.ct', '.cti' ], CPP_EXCLUDE_EXTENSIONS = [ '.test.hh' ], @@ -96,9 +96,10 @@ env.Append( ) env.SetDefault( - LIBSENF = "senf", - final = 0, - debug = 0, + LIBSENF = "senf", + final = 0, + debug = 0, + syslayout = 0 ) # Set variables from command line @@ -117,14 +118,14 @@ if not env.GetOption('clean') and not os.path.exists(".prepare-stamp") \ # Load SConscripts +SConscriptChdir(0) SConscript("debian/SConscript") -SConscript("doclib/SConscript") +SConscriptChdir(1) if os.path.exists('SConscript.local') : SConscript('SConscript.local') - SConscript("senf/SConscript") - SConscript("Examples/SConscript") SConscript("HowTos/SConscript") +SConscript("doclib/SConscript") ########################################################################### # Define build targets