mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Merge pull request #727 from jbcrail/make-cleanup
make: fix build error and remove unused aliases
This commit is contained in:
commit
cfadcfaf64
1 changed files with 11 additions and 23 deletions
16
Makefile
16
Makefile
|
@ -1,5 +1,4 @@
|
|||
# Config options
|
||||
ENABLE_RELEASE ?= n
|
||||
PROFILE ?= debug
|
||||
MULTICALL ?= n
|
||||
|
||||
|
@ -107,14 +106,6 @@ ifneq ($(OS),Windows_NT)
|
|||
PROGS := $(PROGS) $(UNIX_PROGS)
|
||||
endif
|
||||
|
||||
ALIASES := \
|
||||
hashsum:md5sum \
|
||||
hashsum:sha1sum \
|
||||
hashsum:sha224sum \
|
||||
hashsum:sha256sum \
|
||||
hashsum:sha384sum \
|
||||
hashsum:sha512sum
|
||||
|
||||
BUILD ?= $(PROGS)
|
||||
|
||||
# Programs with usable tests
|
||||
|
@ -173,7 +164,7 @@ endef
|
|||
|
||||
define TEST_INTEGRATION
|
||||
test_integration_$(1):
|
||||
${CARGO} test --test $(1)
|
||||
${CARGO} test --test $(1) --features $(1) --no-default-features
|
||||
endef
|
||||
|
||||
define TEST_UNIT
|
||||
|
@ -210,9 +201,6 @@ endif
|
|||
|
||||
all: build
|
||||
|
||||
crates:
|
||||
echo "okay" $(EXES)
|
||||
|
||||
do_install = install ${1}
|
||||
use_default := 1
|
||||
|
||||
|
@ -222,7 +210,7 @@ build-uutils:
|
|||
${CARGO} build --features "${EXES}" ${PROFILE_CMD} --no-default-features
|
||||
|
||||
build: build-uutils $(addprefix build_exe_,$(EXES))
|
||||
$(foreach util, ${EXES}, $(call build_pkg, ${util});)
|
||||
$(foreach util, ${EXES}, $(call build_pkg, ${util}))
|
||||
|
||||
$(foreach test,$(TESTS),$(eval $(call TEST_INTEGRATION,$(test))))
|
||||
$(foreach test,$(TESTS),$(eval $(call TEST_UNIT,$(test))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue