tutorials/pascal/Makefile

12 lines
251 B
Makefile
Raw Normal View History

2021-09-17 10:29:45 -04:00
PROGRAMS_SRC = $(wildcard *.pas)
PROGRAMS_O = $(patsubst %.pas,%.o,$(PROGRAMS_SRC))
PROGRAMS = $(patsubst %.pas,%,$(PROGRAMS_SRC))
all:
2021-09-17 16:16:48 -04:00
$(foreach file, $(PROGRAMS), fpc -v0 ${file};)
2021-09-17 10:29:45 -04:00
clean:
rm -f $(PROGRAMS_O)
rm -f $(PROGRAMS)
.PHONY: all clean