-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (29 loc) · 872 Bytes
/
Makefile
File metadata and controls
34 lines (29 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Lingua Franca MuJoCo Demos Makefile
# Find all .lf files in src/ (not in subdirectories)
LF_FILES := $(wildcard src/*.lf)
# Extract target names (without path and extension)
TARGETS := $(notdir $(basename $(LF_FILES)))
# Default target - show help
.PHONY: help
help:
@echo "MuJoCo Lingua Franca Demos"
@echo ""
@echo "Usage:"
@echo " make <target> Compile a specific demo"
@echo " make all Compile all demos"
@echo " make clean Remove build artifacts"
@echo " make help Show this help message"
@echo ""
@echo "Available targets:"
@$(foreach t,$(TARGETS),echo " $(t)";)
# Compile all demos
.PHONY: all
all: $(TARGETS)
# Pattern rule to compile any .lf file in src/
.PHONY: $(TARGETS)
$(TARGETS): %:
lfc src/$@.lf
# Clean build artifacts
.PHONY: clean
clean:
rm -rf build Lingo.lock include bin src-gen fed-gen MUJOCO_LOG.TXT