X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=Makefile;h=8aa0222563702ca402126ff45f43b8306e13caa1;hp=250155cb2b7e9bc64d93bff3858dfe216289a135;hb=HEAD;hpb=aa6d4257b224443aebac2a9506f633a4c6b0cf1e diff --git a/Makefile b/Makefile index 250155c..8aa0222 100644 --- a/Makefile +++ b/Makefile @@ -2,51 +2,41 @@ # Some SCONS shortcuts #---------------------------------------------------------------------- -CONCURRENCY_LEVEL ?= 2 +SCONS=./tools/scons -ifdef final - FINAL = "final=1" -endif +# DON'T call this default ... default is a valid scons target ;-) +build: default +.PHONY: build -SCONS=scons -j $(CONCURRENCY_LEVEL) $(FINAL) - -default: build - -build: - $(SCONS) - -clean: +clean: message $(SCONS) --clean all +.PHONY: clean -all_docs all_tests all: - $(SCONS) $@ - -%/test %/doc: - $(SCONS) $@ +Makefile: + @true -#---------------------------------------------------------------------- -# Subversion stuff -#---------------------------------------------------------------------- - -svn_version: - @svnversion - -#---------------------------------------------------------------------- -# Building SENF requires some debian packages -#---------------------------------------------------------------------- -DEB_BASE = build-essential +# Forward everything else to scons +%: message + $(SCONS) $@ -# This line parses the 'Build-Depends' entry from debian/control -DEB_SENF = $(shell perl -an -F'[:,]' -e ' \ - BEGIN{ $$,=" " } \ - $$P=0 if /^\S/; \ - map {s/\(.*\)//} @F; \ - print @F if $$P; \ - if (/^Build-Depends:/) { print @F[1..$$\#F]; $$P=1 }' \ - debian/control | xargs echo) +message: + @echo "=================================================================" + @echo "SENF uses SCons as it's build system, so instead of calling" + @echo " $$ make " + @echo + @echo "use" + @echo " $$ ./tools/scons " + @echo + @echo "To get help on valid targets an configuration variables, call" + @echo " $$ ./tools/scons -h" + @echo + @echo "To get help on scons command line options, call" + @echo " $$ ./tools/scons -H" + @echo + @echo "(interesting options: -c, -U, -j , --config=force)" + @echo "=================================================================" + sleep 5 prerequisites: - aptitude install $(DEB_BASE) $(DEB_SENF) - -package: - $(SCONS) deb + ./debian/install-depends.sh +.PHONY: prerequisites