From 19665f8afca591006af4e303825ef91825e4b8cd Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 5 Oct 2019 17:11:23 +0000 Subject: target-specific headers: added the install-pyhdr-osapi install target. --- config/linux/config.mk | 5 +++++ config/midipix/config.mk | 5 +++++ project/pyinst.mk | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/config/linux/config.mk b/config/linux/config.mk index 4293b37..c63e027 100644 --- a/config/linux/config.mk +++ b/config/linux/config.mk @@ -28,3 +28,8 @@ PYEXT_STATIC = \ # strict shared object generation LDFLAGS_STRICT += -Wl,-no-undefined + +# osapi headers +PYTHON_OSAPI_HEADERS = \ + $(PROJECT_DIR)/profiles/osapi/modern.h \ + $(PROJECT_DIR)/profiles/osapi/linux.h \ diff --git a/config/midipix/config.mk b/config/midipix/config.mk index e9c672d..b36fae5 100644 --- a/config/midipix/config.mk +++ b/config/midipix/config.mk @@ -24,3 +24,8 @@ PYEXT_STATIC = \ # strict shared object generation LDFLAGS_STRICT += -Wl,-no-undefined + +# osapi headers +PYTHON_OSAPI_HEADERS = \ + $(PROJECT_DIR)/profiles/osapi/modern.h \ + $(PROJECT_DIR)/profiles/osapi/midipix.h \ diff --git a/project/pyinst.mk b/project/pyinst.mk index bf50414..c18fcd4 100644 --- a/project/pyinst.mk +++ b/project/pyinst.mk @@ -34,8 +34,14 @@ install-pyhdr: config.tag mkdir -p $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE) cp -p $(API_HEADERS) $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE) +# install-pyhdr-osapi +install-pyhdr-osapi: config.tag + mkdir -p $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)/osapi + cp -p $(PYTHON_OSAPI_HEADERS) $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)/osapi + install-shared: install-pyext install-shared: install-pyhdr +install-shared: install-pyhdr-osapi install-app: install-man install-app: install-app-extdir -- cgit v1.2.3