tests/genericmake/project_files/Makefile
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 09 Jun 2017 18:12:12 +0300
changeset 1695 a63bb4025852
parent 1542 0535a6b50534
permissions -rw-r--r--
avoid infinite loop in search

for example following regexp '()' creates infinite list of result
BEREMIZ_OBJS = $(BEREMIZSRC:.c=.o)

all: warn some_binary
	@echo "*** all done ***"

warn:
	@echo "*** Sample Makefile, does nothing ***"

some_binary: $(BEREMIZ_OBJS)
	@echo "* Would link $^ -> $@"

%.o: %.c
	@echo "* Would compile $< -> $@"