c87986624f
py-mods.mk: Add missing py.clean
...
py.clean is not run for clean target, fix that
Signed-off-by: Jan Lindemann <jan@janware.com>
2022-10-04 11:03:29 +00:00
53491b490d
debugger.mk: Remove .gdb_history with distclean target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2021-01-15 10:58:29 +00:00
d6e1eaf547
depend.mk: Make .o.dep.mk also depend on $(SRC_H)
...
This should prevent some errors during compilation.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-12-01 16:24:43 +00:00
c43fd8d0aa
defs-cpp.mk: Add .hh to LOCAL_H
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-12-01 16:24:42 +00:00
cec581c8f6
vim.mk: Add variable INSTALL_VIM_SYSTEM_PATH
...
Add INSTALL_VIM_SYSTEM_PATH for use in including makefiles
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-12-01 16:21:21 +00:00
0596109c36
run.mk: Add variable EXE_CMD
...
Add variable EXE_CMD to be overriden in including makefiles
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-12-01 16:21:20 +00:00
8d2b093cc6
defs.mk: Replace tr invocations by $(TR)
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-12-01 16:21:19 +00:00
50988845d7
defs.mk: Add .hh to SRC_H
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-11-30 16:52:50 +00:00
4ebe82970f
projects-dir.mk: Make INTERACTIVE=true default
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-11-30 13:32:30 +00:00
e06ead38cc
swig.mk, defs-(dist|dev).mk: Fix Python 3 support
...
python38.pc doesn't exist on OpenSUSE Tumbleweed, python-38.pc does, so use
that naming scheme. Also allow installation with DEVELOPMENT=true, failed with
the attempt to install as root user before.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-11-21 13:09:15 +00:00
b35b87009b
topdir.mk: Add pkg-manager targets
...
Add targets also present in projects-dir.mk:
- Pkg-manager-refresh
- Pkg-manager-install-build-deps
- Pkg-manager-install-release-deps
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-11-11 16:16:42 +00:00
6846acbdf7
svg.mk: Fix inkscape command line API change on --export-png
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-08-29 14:01:42 +00:00
c37f49a170
project.conf + pkg-manager.sh: Add support for raspbian
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-06-16 17:05:03 +00:00
f3febfa460
py-defs.mk, projects.mk: Fix /usr/bin/python globbing on OpenSUSE
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-05-18 13:15:35 +00:00
caf33841b4
py-defs.mk, projects.mk: Use latest install Python
...
Use $(lastword $(shell ls -v /usr/bin/python[0-9]*)) for the Python version to use.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-05-16 13:22:51 +00:00
a82fa9023b
py-xxx.mk: Introduce PYTHON_MAJOR
...
Where *.pyc files are created is decided by PYTHON_MAJOR, not PYTHON_VERSION,
so introduce it.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-05-16 13:09:16 +00:00
5e9168480a
project-dirs.mk / pgit.sh: Add support for offlining projects
...
This adds support for the variable OFFLINE_PROJECTS in projects-dir.mk and the
PGIT_IGNORE environment variable. Both go hand in hand and do what their names
insinuate. OFFLINE_PROJECTS is initialized from EXCLUDE_FROM_BUILD, which in
turn is initialized from exclude.txt and friends.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-05-10 08:07:22 +00:00
fab119fca9
py-defs.mk: Add MYPYPATH to py-libpath target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-26 19:04:18 +00:00
f9c7582e2b
rpmdist.mk: Fix target echo-requires
...
echo-requires doesn\'t work because all non-pkg-% targets are disabled
in rpmdist.mk, so rename it to pkg-requires. Also add support for build
deps.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-12 06:13:31 +00:00
a404be15b9
make, scripts: Add support for static Python typechecking
...
This commit adds support for static typechecking with mypy.
Notable additions:
- A new target "check" which does the type checking
- Py-mods.mk, meant to be included from a directory containing python modules
in subdirectories, but not being a python module itself. It makes the all
target depend on check only if PY_RUN_CHECK_AFTER_BUILD is defined and
true. That's because pypy is under heavy development, and the Ubuntu 18.04
version is too old to work for lots of the code.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-10 12:13:12 +00:00
47221aabdb
defs-dirs.mk: Add support for EXTRA_SUBDIR_TARGETS
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-10 12:03:42 +00:00
477d4e2d8d
rpmdist.mk: Remove make/.cache.mk with clean target
...
make rpm-build sometimes fails because RPM_VERSION is taken from .cache.mk. Not
sure if this commit always resolves that entirely, but it mitigates the
problem.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-05 12:51:10 +00:00
d8542717b1
py-defs.mk: Add PY_PREREQ_RUN in PYTHONPATH
...
This allows to specify modules in a test directory which a given module does
_not_ depend on and doesn't want to depend on.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-05 12:51:08 +00:00
3e99fe51cd
projects-dir.mk: Don't do git-pull.done before git-pull-%
...
Use cvs-update.done instead of git-pull.done as prerequisite
of git-pull-%, because otherwise broken remote own repos
might not be recoverable
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-03-23 08:13:14 +00:00
640dc4ffad
git-submod.mk: Check a couple of variables before taking action
...
Add checks to the git-init-submod-remote target, to keep it from
starting a job which fails halfway through
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-02-25 10:39:24 +00:00
34c5d3ec21
proj.mk: Set JANWARE_URL_DOC_PROJECT to jw-build cheat sheet
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-02-24 12:19:05 +00:00
f8765bf0f2
qt-defs.mk: Fix QT_BIN_PREFIX
...
pkg-config --variable=host_bins <modules> returns a trailing whitespace, which
breaks QT_BIN_PREFIX, fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-02-10 19:52:56 +00:00
9370121c65
Fix: Tried to purge on first download without jw-build present
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-01-20 09:21:35 +00:00
db06828ec4
dev-utils.mk indent-makefiles: Only current directory
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-20 10:57:43 +00:00
20e599c049
projects-dir.mk: Add python3 to BASE_PKGS
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-10 18:51:39 +00:00
2a57902480
projects-dir.mk: Mention help target in comment
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-09 09:57:16 +00:00
82f48a4630
projects-dir.mk: Add help target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-09 09:52:31 +00:00
36bf04a4d2
projects-dir.mk: Do pull.done before git-pull-%
...
This might fix a situation where make git-pull-<user> fails,
because jw-build isn't there, yet
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-07 19:22:53 +00:00
6bdb16878a
make: Replace "pereq" in targets by "deps"
...
"prereq" is simply impossible to use in explanations with a straight face.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-07 19:21:08 +00:00
92726d14a4
cache.mk: Replace $(RM) by rm
...
$(RM) is a cached variable, so it's not a good idea to
use it in cache.mk to get to a clean state
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-19 13:13:22 +00:00
9e936455fc
py-rules.mk: Remove *.rep with clean target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-19 13:12:16 +00:00
2a0694a497
defs.mk: Add PRISTINE_MAKE
...
make carries MAKEFLAGS, PATH, LD_LIBRARY_PATH and umask from the environment to
sub-makes, which sometimes is undesirable. So, instead of make -C,
$(PRISTINE_MAKE) -C will start a sub-make with a minimal environment consisting
of MINIMAL_UMASK, MINIMAL_PATH, MINIMAL_LD_LIBRARY_PATH and MINIMAL_MAKEFLAGS
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-19 13:11:51 +00:00
0186d346a5
project.conf: Add inkscape to pkg.requires.os.build
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-19 09:28:15 +00:00
83eeb7a2f9
Fix: Realpath is not a package anymore in Ubuntu 18.04
...
/usr/bin/realpath is part of coreutils in Ubuntu 18.04
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-19 09:07:57 +00:00
f9e73b54a2
project.conf: Add release package dependencies for Ubuntu
...
Add release dependencies devscripts, debhelper, dput, libparse-debcontrol-perl,
fakeroot, pkg-config, tested on Ubuntu 18.04.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-13 12:51:43 +00:00
921a929cd3
Ubuntu: Fix PY_SITE_PACKAGES_PATH
...
PY_SITE_PACKAGES_PATH is set to the first element site.getsitepackages(), which
(correctly, but in this case undesirably) is below /usr/local. Use the first
path which is not.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-13 12:49:27 +00:00
ee012a8d35
defs.mk: Fix PKG_FORMAT for Ubuntu
...
The PKG_FORMAT variable for Ubuntu points to rpm, which is wrong. Fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-13 12:49:25 +00:00
34a42cd0a4
defs.mk: Fix uniq
...
uniq failed on empty argument lists, fix that
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-11-12 18:44:36 +00:00
35def547bf
py-mod.mk: Add support to async function definitions
...
The async keyword confused python-tools.sh, this commit fixes that.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-10-28 12:20:51 +00:00
9f0276ead5
py-defs.mk: Fix clean target
...
pyc.clean was broken because it did rm -f __pycache__ (a directory)
Also, add include guards.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-10-28 12:20:50 +00:00
01685f5ff0
git-submod.mk: Fix vars for not yet existent submodule
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-10-01 10:55:33 +00:00
23ce1b8642
platform.mk / defs.mk fix: SHELL was referenced before definition
...
SHELL defaults to /bin/sh on Ubuntu 16, and was used to get-os.sh, which fails
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-08-02 05:48:32 +00:00
0944f009db
doxygen.mk: Code beautification
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-07-29 10:32:48 +00:00
32edd25779
debugger.mk: Fix core file parsing from GDB output
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-07-22 15:50:40 +00:00
fe69ec6248
run.mk: Remove all core files before run
...
Fix: Make sure that all core files are removed before the run target's command
is executed.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-07-14 13:23:14 +00:00