.PHONY: all clean run EXE := mine PAS := $(wildcard *.pas) all: $(EXE) $(EXE): $(EXE).pas $(PAS) fpc $< clean: rm -vf *.o *.ppu $(EXE) run: ./$(EXE)