geo/_examples_/Makefile

19 lines
316 B
Makefile

.ONESHELL:
SHELL = /usr/bin/bash
MAKEFLAGS += --no-print-directory
.SILENT:
EXAMPLES := $(wildcard *.py)
EXAMPLES := $(filter-out config.py, $(EXAMPLES))
LOGFILES := ${EXAMPLES:.py=.log}
.PHONY: all
all: $(LOGFILES)
%.log: %.py
python3 $< > $@
clean:
echo -e "\e[1m * Example logs...\e[0m"
rm -f $(LOGFILES)