##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: November, 2016 # Modified: 2016-11-26/03:49-0500 ##+ # Unicon programming starter Makefile sample .RECIPEPREFIX = > # quick help, first target is default target, "make" or "make help" .PHONY: help help: > @echo "Unicon example Makefile" > @echo > @echo "make help\t\tfor this help" > @echo "make program\t\tto build program.icn" > @echo "make run\t\tto run executable from program.icn" > @echo > @echo "make name\t\tto build and run any given named .icn file" > @echo "make -B name\t\twill force the run, even if already up to date" > @echo "make name.u\t\tto build a link file for any given named .icn file" # make Unicon program, $< is the first prereq program: program.icn > unicon $< run: program > ./$< # generic rules # build and run any given .icn file by typing "make name" %: %.icn > unicon -s $^ -x # create a linkable Unicon file by typing "make name.u" %.u: %.icn > unicon -c $^