mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-22 16:45:32 +00:00
Merge pull request #4939 from DanielG/rsync-fallback
mk: Fall back to cp if rsync is not available
This commit is contained in:
commit
cce7aaedf7
2 changed files with 15 additions and 3 deletions
|
@ -3,6 +3,12 @@ all: examples all_tex
|
|||
# set a fake time in pdf generation to prevent unnecessary differences in output
|
||||
FAKETIME := TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001'
|
||||
|
||||
ifneq ($(shell :; command -v rsync),)
|
||||
RSYNC_CP ?= rsync -t
|
||||
else
|
||||
RSYNC_CP ?= cp -a
|
||||
endif
|
||||
|
||||
# find all code example makefiles
|
||||
.PHONY: examples
|
||||
CODE_EXAMPLES := ../code_examples/*/Makefile
|
||||
|
@ -19,7 +25,7 @@ FORCE:
|
|||
../%/Makefile: FORCE
|
||||
@make -C $(@D) dots
|
||||
@mkdir -p $*
|
||||
@find $(@D) -name *.dot -exec rsync -t {} $* \;
|
||||
@find $(@D) -name *.dot -exec $(RSYNC_CP) {} $* \;
|
||||
|
||||
# find and build all tex files
|
||||
.PHONY: all_tex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue