'Change POU Type To' becomes 'Duplicate as...', avoiding side effects of type change when POU is already instanciated. Also remove leftover returType tag in ex-function POUs, triggering exceptions at build time.
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 $< -> $@"