| 1 |
# /usr/share/doc/python-cysignals-doc/examples/example/Makefile |
| 2 |
# |
| 3 |
# Ad hoc Makefile for building and playing with the sample sources |
| 4 |
# distributed within the debian package python-cysignals-doc. |
| 5 |
# |
| 6 |
# Recommended usage: |
| 7 |
# create a dedicated folder somewhere in your HOME directory; |
| 8 |
# link all the files in /usr/share/doc/python-cysignals-doc/examples/example |
| 9 |
# in the dedicated folder; launch this Makefile in the dedicated folder: |
| 10 |
# $ make ; |
| 11 |
# for a basic cleanup, consider the clean target: |
| 12 |
# $ make clean ; |
| 13 |
# for an entire cleanup, the maintainer-clean target: |
| 14 |
# $ make maintainer-clean ; |
| 15 |
# for other targets, just read the Makefile. |
| 16 |
# |
| 17 |
# written for Debian by Jerome Benoit <[email protected]> |
| 18 |
# on behalf of the Debian Python Modules Team |
| 19 |
# copyright: 2016-2025 Jerome Benoit <[email protected]> |
| 20 |
# distributed under the terms and conditions of GPL version 3 or later |
| 21 |
# |
| 22 |
|
| 23 |
DOCTESTS = $(sort $(wildcard *.pyx)) |
| 24 |
|
| 25 |
default: all |
| 26 |
|
| 27 |
export CFLAGS = -Wno-unused-variable -Wno-unused-function |
| 28 |
|
| 29 |
all: build |
| 30 |
|
| 31 |
build: meson.build cysignals_example.pyx |
| 32 |
$(MESON) setup _BUILD |
| 33 |
|
| 34 |
check: build |
| 35 |
|
| 36 |
clean: |
| 37 |
$(RM) cysignals_example.cpp |
| 38 |
$(RM) -rf _BUILD |
| 39 |
|
| 40 |
maintainer-clean: clean |
| 41 |
|
| 42 |
##PYTHON ?= python3 |
| 43 |
MESON ?= meson |