Skip to content

Commit

Permalink
Merge pull request #33 from DArtagan/install_headers
Browse files Browse the repository at this point in the history
Install header files globally
  • Loading branch information
noxdafox committed Apr 11, 2020
2 parents 16c490f + 74a42d1 commit 90d7181
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ PYTHON ?= python
CLIPS_VERSION ?= 6.31
CLIPS_SOURCE_URL ?= "https://downloads.sourceforge.net/project/clipsrules/CLIPS/6.31/clips_core_source_631.zip"
MAKEFILE_NAME ?= makefile
SHARED_LIBRARY_DIR ?= /usr/lib
SHARED_INCLUDE_DIR ?= /usr/local/include
SHARED_LIBRARY_DIR ?= /usr/local/lib

# platform detection
PLATFORM = $(shell uname -s)
Expand Down Expand Up @@ -39,7 +40,12 @@ test: clipspy
$(PYTHON) -m pytest -v

install-clips: clips
cp clips_source/libclips.so \
install -d $(SHARED_INCLUDE_DIR)/
install -m 644 clips_source/clips.h $(SHARED_INCLUDE_DIR)/
install -d $(SHARED_INCLUDE_DIR)/clips
install -m 644 clips_source/*.h $(SHARED_INCLUDE_DIR)/clips/
install -d $(SHARED_LIBRARY_DIR)/
install -m 644 clips_source/libclips.so \
$(SHARED_LIBRARY_DIR)/libclips.so.$(CLIPS_VERSION)
ln -s $(SHARED_LIBRARY_DIR)/libclips.so.$(CLIPS_VERSION) \
$(SHARED_LIBRARY_DIR)/libclips.so.6
Expand Down

0 comments on commit 90d7181

Please sign in to comment.