mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Fix id and groups for Macs. Also make every util depend on common
This commit is contained in:
parent
a2d5dc4995
commit
cf2d7a3bb7
3 changed files with 45 additions and 17 deletions
6
Makefile
6
Makefile
|
@ -97,11 +97,11 @@ command = sh -c '$(1)'
|
|||
# Main exe build rule
|
||||
define EXE_BUILD
|
||||
ifeq ($(wildcard $(1)/Makefile),)
|
||||
build/$(1): $(1)/$(1).rs | build
|
||||
build/$(1): $(1)/$(1).rs common/*.rs | build
|
||||
$(call command,$(RUSTC) $(RUSTCFLAGS) -o build/$(1) $(1)/$(1).rs)
|
||||
clean_$(1):
|
||||
else
|
||||
build/$(1): $(1)/$(1).rs | build
|
||||
build/$(1): $(1)/$(1).rs common/*.rs | build
|
||||
cd $(1) && make
|
||||
clean_$(1):
|
||||
cd $(1) && make clean
|
||||
|
@ -109,7 +109,7 @@ endif
|
|||
endef
|
||||
|
||||
define CRATE_BUILD
|
||||
build/$(2): $(1)/$(1).rs | build
|
||||
build/$(2): $(1)/$(1).rs common/*.rs | build
|
||||
$(call command,$(RUSTC) $(RUSTCFLAGS) --crate-type rlib $(1)/$(1).rs --out-dir build)
|
||||
endef
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue