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:
parent
1161874362
commit
25b2c6df30
2 changed files with 6 additions and 1 deletions
18
build.mk
Normal file
18
build.mk
Normal 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)
|
||||
7
setup.py
7
setup.py
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue