Browse Source

Allow to specify a target in the Makefile

pull/39/head
Rodolphe Breard 4 years ago
parent
commit
82674904c1
  1. 2
      CHANGELOG.md
  2. 14
      Makefile

2
CHANGELOG.md

@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- In the configuration, `root_certificates` has been added to the `global` and `endpoint` sections as an array of strings representing the path to root certificate files. - In the configuration, `root_certificates` has been added to the `global` and `endpoint` sections as an array of strings representing the path to root certificate files.
- At compilation, it is now possible to statically link OpenSSL using the `openssl_vendored` feature. - At compilation, it is now possible to statically link OpenSSL using the `openssl_vendored` feature.
- In the Makefile, it is now possible to specify which target triple to build for.
## [0.12.0] - 2020-09-26 ## [0.12.0] - 2020-09-26

14
Makefile

@ -6,7 +6,7 @@ DATADIR = $(DATAROOTDIR)
MAN5DIR = $(DATADIR)/man/man5 MAN5DIR = $(DATADIR)/man/man5
MAN8DIR = $(DATADIR)/man/man8 MAN8DIR = $(DATADIR)/man/man8
SYSCONFDIR = /etc SYSCONFDIR = /etc
TARGET_DIR = ./target/release
TARGET_DIR = ./target/$(TARGET)/release
MAN_SRC_DIR = ./man/en MAN_SRC_DIR = ./man/en
MAN_DST_DIR = $(TARGET_DIR)/man MAN_DST_DIR = $(TARGET_DIR)/man
@ -18,11 +18,19 @@ update:
cargo update cargo update
acmed: acmed:
cargo build --release --manifest-path "acmed/Cargo.toml" --no-default-features --features "$(FEATURES)"
if test -n "$(TARGET)"; then \
cargo build --release --manifest-path "acmed/Cargo.toml" --no-default-features --features "$(FEATURES)" --target "$(TARGET)"; \
else \
cargo build --release --manifest-path "acmed/Cargo.toml" --no-default-features --features "$(FEATURES)"; \
fi
strip "$(TARGET_DIR)/acmed" strip "$(TARGET_DIR)/acmed"
tacd: tacd:
cargo build --release --manifest-path "tacd/Cargo.toml" --no-default-features --features "$(FEATURES)"
if test -n "$(TARGET)"; then \
cargo build --release --manifest-path "tacd/Cargo.toml" --no-default-features --features "$(FEATURES)" --target "$(TARGET)"; \
else \
cargo build --release --manifest-path "tacd/Cargo.toml" --no-default-features --features "$(FEATURES)"; \
fi
strip "$(TARGET_DIR)/tacd" strip "$(TARGET_DIR)/tacd"
man: man:

Loading…
Cancel
Save