You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
278 B
19 lines
278 B
PREFIX = /home/heck/local-default/
|
|
DEBUG = 0
|
|
BUILD_DIR = ./build
|
|
|
|
BUILD_EXT_OPTS = --prefix=$(PREFIX)
|
|
|
|
ifeq ($(DEBUG),1)
|
|
BUILD_EXT_OPTS+=--debug
|
|
endif
|
|
|
|
.PHONY: all build clean
|
|
|
|
all: build_ext
|
|
|
|
build_ext:
|
|
python3 setup.py build_ext $(BUILD_EXT_OPTS)
|
|
|
|
clean:
|
|
rm -r $(BUILD_DIR)
|