kitty/Makefile
Kovid Goyal 88a5086f71
Add rudimentary support for cross-compilation
Not really tested, actual cross compilers, feel free to send patches.
Fixes #6354
2023-06-13 07:56:16 +05:30

73 lines
1 KiB
Makefile

ifdef V
VVAL=--verbose
endif
ifdef VERBOSE
VVAL=--verbose
endif
ifdef FAIL_WARN
export FAIL_WARN
endif
all:
python3 setup.py $(VVAL)
test:
python3 setup.py $(VVAL) test
clean:
python3 setup.py $(VVAL) clean
# A debug build
debug:
python3 setup.py build $(VVAL) --debug
debug-event-loop:
python3 setup.py build $(VVAL) --debug --extra-logging=event-loop
# Build with the ASAN and UBSAN sanitizers
asan:
python3 setup.py build $(VVAL) --debug --sanitize
profile:
python3 setup.py build $(VVAL) --profile
app:
python3 setup.py kitty.app $(VVAL)
linux-package: FORCE
rm -rf linux-package
python3 setup.py linux-package
FORCE:
man:
$(MAKE) -C docs man
html:
$(MAKE) -C docs html
dirhtml:
$(MAKE) -C docs dirhtml
linkcheck:
$(MAKE) -C docs linkcheck
website:
./publish.py --only website
docs: man html
develop-docs:
$(MAKE) -C docs develop-docs
prepare-for-cross-compile:
$(MAKE) clean
$(MAKE) build
python3 setup.py $(VVAL) clean --clean-for-cross-compile
cross-compile:
python3 setup.py linux-package --skip-code-generation