# Last edited on 2019-04-13 01:26:08 by stolfilocal ACTIONS := first middle last fastmovie all: ${MAKE} ${ACTIONS} print_help: @-echo "You must execute 'make '" @-echo "" @-echo "To render a movie (or some frames of a movie) use any of these:" @-echo "" @-echo " make first" @-echo " make middle" @-echo " make last" @-echo " make strip" @-echo " make fastmovie" @-echo " make fullmovie" @-echo " make clean" @-echo " make CLOCK=N.NNNN still" NAME := main # Large image size (e.g. still frames): FULLWIDTH := 800 FULLHEIGHT := 400 # Medium image size (e.g. the final movie): MEDWIDTH := 300 MEDHEIGHT := 150 # Small image size (e.g. the film strips): SMALLWIDTH := 80 SMALLHEIGHT := 40 .PHONY:: \ first \ middle \ last \ still \ fastmovie \ fullmovie \ clean # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Still frames first: ${MAKE} CLOCK=0.0000 still middle: ${MAKE} CLOCK=0.5000 still; last: ${MAKE} CLOCK=1.0000 still; ###################################################################### # Commands for a specific still frame: # Caller must define ${CLOCK}. CLOCK := CLOCK.IS.UNDEFINED ifneq "${CLOCK}" "CLOCK.IS.UNDEFINED" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # "make still CLOCK=N.NNNN" creates a frame with specified clock value: # STILLTAG := x STILLWIDTH := ${FULLWIDTH} STILLHEIGHT := ${FULLHEIGHT} STILLRAYS := 2 still: ${MAKE} -f FRAME.make \ NAME=${NAME} TAG=${STILLTAG} \ WIDTH=${STILLWIDTH} HEIGHT=${STILLHEIGHT} NRAYS=${STILLRAYS} \ CLOCK=${CLOCK} SHOW=YES \ all endif # ${CLOCK} # ####################################################################### # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # "make strip" creates a strip with several frames: STRIPTAG := s STRIPWIDTH := ${SMALLWIDTH} STRIPHEIGHT := ${SMALLHEIGHT} strip: ${MAKE} -f STRIP.make \ NAME=${NAME} TAG=${STRIPTAG} \ WIDTH=${STRIPWIDTH} HEIGHT=${STRIPHEIGHT} \ all # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # "make fastmovie" creates a movie with 24 medium-size frames at speed × 4. FASTTAG := f FASTWIDTH := ${MEDWIDTH} FASTHEIGHT := ${MEDHEIGHT} fastmovie: ${MAKE} -f MOVIE.make \ NAME=${NAME} TAG=${FASTTAG} \ WIDTH=${FASTWIDTH} HEIGHT=${FASTHEIGHT} \ all FULLTAG := m FULLWIDTH := ${MEDWIDTH} FULLHEIGHT := ${MEDHEIGHT} fullmovie: ${MAKE} -f MOVIE.make \ NAME=${NAME} TAG=${FULLTAG} \ WIDTH=${FULLWIDTH} HEIGHT=${FULLHEIGHT} \ all