Browse Source

make clean etc...

master
heck 5 years ago
parent
commit
5f6c1d80d8
  1. 7
      gen/Makefile
  2. 16
      gen/examples/Makefile
  3. 2
      gen/examples/ext/synth_shed/Makefile
  4. 14
      gen/examples/ext/synth_shed/Makefile.conf
  5. 7
      gen/examples/ext/synth_shed/pyproject.toml
  6. 1
      gen/examples/ext/synth_shed/requirements.txt
  7. 6
      gen/examples/ext/synth_shed/setup.py
  8. 9
      gen/examples/lib/Makefile
  9. 1
      gen/setup.cfg

7
gen/Makefile

@ -10,7 +10,7 @@ PYTHON_ARTIFACTS += ./tests/__pycache__
.PHONY: all build dist dist-egg dist-whl install install-user install-test venv envtest test develop examples clean clean-all .PHONY: all build dist dist-egg dist-whl install install-user install-test venv envtest test develop examples clean clean-all
all: dist all: dist example-libs
# Build # Build
# ===== # =====
@ -67,8 +67,8 @@ develop:
# Examples # Examples
# ======== # ========
# Use these targets only in venv created with 'make venv' # Use these targets only in venv created with 'make venv'
examples: example-libs:
$(MAKE) -C examples/ all $(MAKE) -C examples/lib all
# Housekeeping # Housekeeping
# ============ # ============
@ -76,6 +76,7 @@ clean-all: clean
rm -rf $(VENV_DIR) rm -rf $(VENV_DIR)
clean: clean:
$(MAKE) -C examples/lib clean
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)
rm -rf $(DIST_DIR) rm -rf $(DIST_DIR)
rm -rf $(PYTHON_ARTIFACTS) rm -rf $(PYTHON_ARTIFACTS)

16
gen/examples/Makefile

@ -1,16 +0,0 @@
.PHONY: all
all:
$(MAKE) -C lib/lib_test/
$(MAKE) -C lib/lib_synth_shed/
$(MAKE) -C ext/synth_shed/synth_shed/
clean:
$(MAKE) -C lib/lib_test/ clean
$(MAKE) -C lib/lib_synth_shed/ clean
$(MAKE) -C ext/synth_shed/synth_shed/ clean
clean-all:
$(MAKE) -C lib/lib_test/ clean
$(MAKE) -C lib/lib_synth_shed/ clean
$(MAKE) -C ext/synth_shed/synth_shed/ clean

2
gen/examples/ext/synth_shed/Makefile

@ -80,10 +80,10 @@ clean-all: clean
rm -rf $(VENV_DIR) rm -rf $(VENV_DIR)
clean: clean:
$(MAKE) -C synth_shed/ clean
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)
rm -rf $(DIST_DIR) rm -rf $(DIST_DIR)
rm -rf $(PYTHON_ARTIFACTS) rm -rf $(PYTHON_ARTIFACTS)
rm -rf $(VERSION_FILE)
rm -rf $(BUILD_INPLACE) rm -rf $(BUILD_INPLACE)

14
gen/examples/ext/synth_shed/Makefile.conf

@ -3,18 +3,8 @@ HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
# Constants # Constants
BUILD_DIR = ./build BUILD_DIR = ./build
DIST_DIR = ./dist DIST_DIR = ./dist
BUILD_INPLACE = ./src/synth_shed/syth_shed.cpython-38-darwin.so BUILD_INPLACE = ./synth_shed/syth_shed.cpython-38-darwin.so
PYTHON_ARTIFACTS += ./.eggs PYTHON_ARTIFACTS += ./.eggs
PYTHON_ARTIFACTS += ./src/syth_shed.egg-info PYTHON_ARTIFACTS += ./synth_shed.egg-info
PYTHON_ARTIFACTS += ./.pytest_cache PYTHON_ARTIFACTS += ./.pytest_cache
VENV_DIR = ./venv VENV_DIR = ./venv
# Build config Defaults
PREFIX=
######### Overrides #########
-include $(HERE)local.conf
ifneq ($(PREFIX),)
PREFIX_OPT += --prefix=$(PREFIX)
endif

7
gen/examples/ext/synth_shed/pyproject.toml

@ -1,10 +1,9 @@
[build-system] [build-system]
# Preparing for PEP-517/PEP-518, but not in effect yet. # Preparing for PEP-517/PEP-518, but not in effect yet.
# These requires are not effective yet, setup.cfg is. # These requires are not effective yet, setup.cfg is.
requires =[ requires = [
"setuptools >=39.2.0", "setuptools >=39.2.0",
"wheel >= 0.35.1" ] "wheel >= 0.35.1", ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"

1
gen/examples/ext/synth_shed/requirements.txt

@ -1 +1,2 @@
pEpACIDgen pEpACIDgen
pyBind11

6
gen/examples/ext/synth_shed/setup.py

@ -1,19 +1,15 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This file is under GNU Affero General Public License 3.0 # This file is under GNU Affero General Public License 3.0
# see LICENSE.txt # see LICENSE.txt
from setuptools import setup, Extension from setuptools import setup, Extension
# import pybind11.setup_helpers
ext_modules = [ ext_modules = [
Extension( Extension(
"synth_shed", "synth_shed",
["synth_shed/synth_shed.cc"], ["synth_shed/synth_shed.cc"],
include_dirs=['../../lib/lib_synth_shed', include_dirs=['../../lib/lib_synth_shed',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8', '/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8',
'/Users/heck/src/adapter/pEpPythonAdapter-new/gen/examples/ext/synth_shed/venv/lib/python3.8/site-packages/pybind11/include'], 'venv/lib/python3.8/site-packages/pybind11/include'],
extra_compile_args=['-std=c++11'], extra_compile_args=['-std=c++11'],
libraries=['synth_shed'], libraries=['synth_shed'],
library_dirs=['../../lib/lib_synth_shed/'] library_dirs=['../../lib/lib_synth_shed/']

9
gen/examples/lib/Makefile

@ -0,0 +1,9 @@
.PHONY: all
all:
$(MAKE) -C lib_test/
$(MAKE) -C lib_synth_shed/
clean:
$(MAKE) -C lib_test/ clean
$(MAKE) -C lib_synth_shed/ clean

1
gen/setup.cfg

@ -36,6 +36,7 @@ setup_requires =
install_requires = install_requires =
clang clang
yml2 yml2
pybind11 >= 2.6.1
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =

Loading…
Cancel
Save