TARGETS = echo.ncl

.PHONY: all
all: $(TARGETS)

.PHONY: clean
clean:
	-rm -f $(TARGETS)

.SUFFIXES:
.SUFFIXES: .lua .ncl
.lua.ncl:
	@echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" >$@;\
	echo "<!-- Generated by Makefile.  DO NOT EDIT.  -->" >$@;\
	echo "<ncl id=\"$@\">" >>$@; \
	echo "<head></head>" >>$@;\
	echo "<body>" >>$@;\
	echo "  <port id=\"start\" component=\"lua\"/>" >>$@;\
	echo "  <media id=\"lua\" src=\"$*.lua\"/>" >>$@;\
	echo "</body>" >>$@;\
	echo "</ncl>" >>$@;
