llama2.c/Makefile.unikernel
Razvan Deaconescu 9d516005f3 Makefile: Simplify Makefile.unikernel
Move file generation rules (.config, model.h, tokenizer.h) out of
`Makefile.unikernel` and into `Makefile`. This simplifies
`Makefile.unikernel` making it Unikraft-specific. And making it easy to
reuse as part of `make -f Makefile.unikraft ...` rules.

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
2023-10-08 17:57:24 +03:00

10 lines
210 B
Makefile

UK_ROOT ?= $(PWD)/UNIK/unikraft
UK_LIBS ?= $(PWD)/UNIK/libs
LIBS := $(UK_LIBS)/musl
all:
@$(MAKE) -C $(UK_ROOT) A=$(PWD) L=$(LIBS)
$(MAKECMDGOALS):
@$(MAKE) -C $(UK_ROOT) A=$(PWD) L=$(LIBS) $(MAKECMDGOALS)