fix example makefile

This commit is contained in:
jacekpoz 2024-08-08 21:54:37 +02:00
parent 213d1eec3a
commit c1d26dc69c
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -4,7 +4,8 @@ EXAMPLE_DIR = examples
EXAMPLES = $(shell find $(EXAMPLE_DIR) -type f -name "*.c")
NAMES = $($(EXAMPLES:.c=):$(EXAMPLE_DIR)/%=%)
OBJ = $(EXAMPLES:.c=)
NAMES = $(OBJ:$(EXAMPLE_DIR)/%=%)
.PHONY: all