Skip to content

Commit

Permalink
Makefile: fix build target directory
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Nov 3, 2023
1 parent 9e366a5 commit 1862cb9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion attestation-service/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PROJDIR := $(shell readlink -f ..)
TOP_DIR := .
CUR_DIR := $(shell pwd)
PREFIX := /usr/local
TARGET_DIR := target
TARGET_DIR := ../target
BIN_NAMES := grpc-as

DEBUG ?=
Expand Down
22 changes: 11 additions & 11 deletions kbs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ build: background-check-kbs

.PHONY: background-check-kbs
background-check-kbs:
cargo build --locked --release --no-default-features --features $(AS_FEATURE),resource,$(HTTPS_CRYPTO),$(POLICY_ENGINE)
cargo build -p kbs --locked --release --no-default-features --features $(AS_FEATURE),resource,$(HTTPS_CRYPTO),$(POLICY_ENGINE)

.PHONY: passport-issuer-kbs
passport-issuer-kbs:
cargo build --locked --release --no-default-features --features $(AS_FEATURE),$(HTTPS_CRYPTO)
mv target/release/kbs target/release/issuer-kbs
cargo build -p kbs --locked --release --no-default-features --features $(AS_FEATURE),$(HTTPS_CRYPTO)
mv ../target/release/kbs ../target/release/issuer-kbs

.PHONY: passport-resource-kbs
passport-resource-kbs:
cargo build --locked --release --no-default-features --features $(HTTPS_CRYPTO),resource,$(POLICY_ENGINE)
mv target/release/kbs target/release/resource-kbs
cargo build -p kbs --locked --release --no-default-features --features $(HTTPS_CRYPTO),resource,$(POLICY_ENGINE)
mv ../target/release/kbs ../target/release/resource-kbs

install-kbs:
install -D -m0755 target/release/kbs $(INSTALL_DESTDIR)
install -D -m0755 target/release/kbs-client $(INSTALL_DESTDIR)
install -D -m0755 ../target/release/kbs $(INSTALL_DESTDIR)
install -D -m0755 ../target/release/kbs-client $(INSTALL_DESTDIR)

install-issuer-kbs:
install -D -m0755 target/release/issuer-kbs $(INSTALL_DESTDIR)
install -D -m0755 target/release/kbs-client $(INSTALL_DESTDIR)
install -D -m0755 ../target/release/issuer-kbs $(INSTALL_DESTDIR)
install -D -m0755 ../target/release/kbs-client $(INSTALL_DESTDIR)

install-resource-kbs:
install -D -m0755 target/release/resource-kbs $(INSTALL_DESTDIR)
install -D -m0755 target/release/kbs-client $(INSTALL_DESTDIR)
install -D -m0755 ../target/release/resource-kbs $(INSTALL_DESTDIR)
install -D -m0755 ../target/release/kbs-client $(INSTALL_DESTDIR)

uninstall:
rm -rf $(INSTALL_DESTDIR)/kbs $(INSTALL_DESTDIR)/kbs-client $(INSTALL_DESTDIR)/issuer-kbs $(INSTALL_DESTDIR)/resource-kbs
Expand Down
2 changes: 1 addition & 1 deletion kbs/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SGX_REPO_URL := https://download.01.org/intel-sgx/sgx_repo/ubuntu
KBS_REPO_PATH := ./data/repository
KBS_CONFIG_PATH := ./data/e2e
MAKEFILE_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
PROJECT_DIR := $(MAKEFILE_DIR)/..
PROJECT_DIR := $(MAKEFILE_DIR)/../..
BOLD := $(shell tput bold)
SGR0 := $(shell tput sgr0)

Expand Down

0 comments on commit 1862cb9

Please sign in to comment.