Download tools/json-graph/src/Makefile from Zharif18/project-codenet: direct link, hf CLI and curl.
- Browser
- Download file 878 Bytes
-
https://huggingface.co/datasets/Zharif18/project-codenet/resolve/main/tools/json-graph/src/Makefile
- Command line
-
hf download hf://datasets/Zharif18/project-codenet/tools/json-graph/src/Makefile
-
curl -L -o Makefile https://huggingface.co/datasets/Zharif18/project-codenet/resolve/main/tools/json-graph/src/Makefile
878 Bytes
| # Copyright IBM Corporation 2020, 2021 | |
| # Written by Geert Janssen <geert@us.ibm.com> | |
| INCLUDES = | |
| CPPFLAGS = $(INCLUDES) | |
| CFLAGS = -O2 -g | |
| LDFLAGS = | |
| all: jgf2dot jgf2spt jsonml2jgf | |
| jgf2dot: jgf2dot.o jgflib.o | |
| jgf2dot.o: jgf2dot.c jgflib.h jsmn.h | |
| jgf2spt: jgf2spt.o jgflib.o | |
| jgf2spt.o: jgf2spt.c jgflib.h jsmn.h | |
| jsonml2jgf: jsonml2jgf.o jgflib.o | |
| jsonml2jgf.o: jsonml2jgf.c jgflib.h jsmn.h | |
| jgflib.o: jgflib.c jgflib.h jsmn.h | |
| # Convert dot to png: | |
| %.png: %.dot | |
| dot -Tpng -o $@ $< | |
| # Convert dot to pdf: | |
| %.pdf: %.dot | |
| dot -Tpdf -o $@ $< | |
| # Convert IBM AI4Code JSON-Graph to GraphViz dot: | |
| %.dot: %.json | |
| ./jgf2dot $< > $@ | |
| %.dot: %.jgf | |
| ./jgf2dot $< > $@ | |
| # Convert IBM AI4Code JSON-Graph to Aroma SPT: | |
| %.spt: %.json | |
| ./jgf2spt $< > $@ | |
| %.spt: %.jgf | |
| ./jgf2spt $< > $@ | |
| %.jgf: %.jsonml | |
| ./jsonml2jgf $< > $@ | |
| clean: | |
| -rm -f *.o jgf2dot jgf2spt jsonml2jgf | |