From fbbf299d21d389fdd6bf580a99569fbf9f5d43a7 Mon Sep 17 00:00:00 2001 From: David Delassus Date: Sun, 28 Jan 2024 20:23:12 +0100 Subject: [PATCH] :hammer: add shipp manifest --- .gitignore | 1 + Makefile | 6 ++++++ README.md | 16 ++++++++++++++++ shipp.json | 8 ++++++++ 4 files changed, 31 insertions(+) create mode 100644 shipp.json diff --git a/.gitignore b/.gitignore index 046c078..60b7c19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /build /.vscode +/.shipp diff --git a/Makefile b/Makefile index 8ac695a..59a3ac8 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +DESTDIR := /usr/local + .PHONY: test test: @make -C tests all @@ -5,3 +7,7 @@ test: .PHONY: docs docs: @make -C docs all + +.PHONY: install +install: + @cp -R include/ $(DESTDIR) diff --git a/README.md b/README.md index c5113b9..f89b335 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,22 @@ $ g++ -std=c++23 -Iaitoolkit/include main.cpp -o mygame > **NB:** This library is compatible with C++20. +Or using [Shipp](https://github.com/linkdd/shipp), add it to your dependencies: + +```json +{ + "name": "myproject", + "version": "0.1.0", + "dependencies": [ + { + "name": "aitoolkit", + "url": "https://github.com/linkdd/aitoolkit.git", + "version": "v0.5.0" + } + ] +} +``` + ## Usage ### Finite State Machine diff --git a/shipp.json b/shipp.json new file mode 100644 index 0000000..a47ce89 --- /dev/null +++ b/shipp.json @@ -0,0 +1,8 @@ +{ + "name": "aitoolkit", + "version": "0.5.0", + "scripts": { + "build": "true", + "install": "make install DESTDIR=$SHIPP_DIST_DIR" + } +}