rename Makefile -> build.mk to avoid spurious build attempts

rationale: proper build needs to go through setup.py anyhow
by renaming Makefile to a less common name, we avoid people building by mistakes
only the makefile-driven part.

This also helps distribution heuristics when guessing how to auto-build
packages (e.g. Debian dh_auto_build)
This commit is contained in:
Stefano Zacchiroli 2013-04-20 22:46:31 +02:00 • committed by Romain Bignon
commit 25b2c6df30
2 changed files with 6 additions and 1 deletions

18
build.mk Normal file
View file

@ -0,0 +1,18 @@
core := weboob/tools/application/qt
applications := qboobmsg qhavedate qwebcontentedit qflatboob qcineoob qcookboob
ifeq ($(WIN32),)
applications += qvideoob
endif
directories := $(core) $(applications:%=weboob/applications/%/ui)
.PHONY: clean all $(directories)
all: target := all
all: $(directories)
clean: target := clean
clean: $(directories)
$(directories):
$(MAKE) -C $@ $(target)

View file

@ -52,7 +52,12 @@ def build_qt():
print >>sys.stderr, 'Install missing component(s) (see above) or disable Qt applications (with --no-qt).'
sys.exit(1)
subprocess.check_call([make, '-s', '-j2', 'all', 'PYUIC=%s%s' % (pyuic4, ' WIN32=1' if sys.platform == 'win32' else '')])
subprocess.check_call(
[make,
'-f', 'build.mk',
'-s', '-j2',
'all',
'PYUIC=%s%s' % (pyuic4, ' WIN32=1' if sys.platform == 'win32' else '')])
class Options(object):