Download chips/yosys/docs/source/_images/Makefile from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/docs/source/_images/Makefile
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/docs/source/_images/Makefile
-
curl -L -o Makefile https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/docs/source/_images/Makefile
1.34 kB
| 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 | |
| CODE_EXAMPLES := ../code_examples/*/Makefile | |
| examples: $(CODE_EXAMPLES) | |
| # target to convert all dot files | |
| # needs to be run *after* examples, otherwise no dot files will be found | |
| DOT_FILES := $(shell find . -name *.dot) | |
| convert: $(DOT_FILES:.dot=.pdf) $(DOT_FILES:.dot=.svg) | |
| # use empty FORCE target because .PHONY ignores % expansion | |
| FORCE: | |
| ../%/Makefile: FORCE | |
| @make -C $(@D) dots | |
| @mkdir -p $* | |
| @find $(@D) -name *.dot -exec $(RSYNC_CP) {} $* \; | |
| # find and build all tex files | |
| TEX_FILES := $(shell find . -name *.tex) | |
| all_tex: $(TEX_FILES:.tex=.pdf) $(TEX_FILES:.tex=.svg) | |
| # limit output size to US letter (same as latexpdf output) to avoid oversize error | |
| %.pdf: %.dot | |
| @$(FAKETIME) dot -Tpdf -Gsize="8.5,11" -o $@ $< >/dev/null 2>&1 | |
| %.pdf: %.tex | |
| @cd $(@D) && $(FAKETIME) pdflatex $(<F) --interaction=nonstopmode >/dev/null 2>&1 | |
| %.svg: %.pdf | |
| @pdf2svg $< $@ >/dev/null 2>&1 | |
| tidy: | |
| @rm -f **/*.log **/*.aux | |
| clean: tidy | |
| @rm -rf code_examples | |
| @rm -f **/*.pdf **/*.svg | |