mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
24 lines
695 B
Makefile
Executable File
24 lines
695 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
export PYBUILD_NAME=notcurses
|
|
|
|
%:
|
|
dh $@ --buildsystem=cmake
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- -DDFSG_BUILD=ON
|
|
|
|
override_dh_auto_build:
|
|
dh_auto_build
|
|
cd python && python3 setup.py build_ext -L../obj-$(DEB_HOST_MULTIARCH) -I../include
|
|
cd python && python3 setup.py build_py
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install -B $(BUILDDIR)
|
|
cd python && python3 setup.py install --prefix=/usr --skip-build --root=../debian/tmp --install-layout=deb --single-version-externally-managed
|
|
rm -rf debian/tmp/usr/lib/python3/dist-packages/__pycache__
|