# List any HTML files for which there are recipes that
# should be build for "all" and deleted during cleaning.
HTMLTARGETS=color-grid.html

# List any other files for which there are recipes that
# should be built for "all" and deleted during cleaning.
FILETARGETS=perette.vim

# Phony targets.  These are built for "all" but excluded
# from deletion during cleaning.
PHONYTARGETS=

# A list of files or directories that should be ignored.
# They should not be built or recursed into.
IGNORE=

include ${WEBBASE}/Include/Makefile.inc

# Tell Tidy to ignore proprietary attributes (needed for
# some social media integrations).
# TIDY_OPTIONS=--warn-proprietary-attributes no

# Set TIDY_TOLERATE_WARNINGS to 1 to ignore HTML Tidy warnings
# TIDY_TOLERATE_WARNINGS=1

# Set VALIDATE to false to disable Validator.Nu validation,
# or ignore to run the validator but ignore the result.
# VALIDATE=ignore

# Add custom recipes here:

# Generate a neatly formatted sample of Xterm/Vim color swatches
# along with their numbers, names and hex codes.
color-grid.html: color-grid.m4 color-maker.m4
	m4 -P color-grid.m4 | tidy -quiet > color-grid.html

# Generate a Vim color file from a simplified M4 format.
perette.vim: color-maker.m4 perette-colors.m4
	m4 -P color-maker.m4 perette-colors.m4 > $@
	cp perette.vim ~/.vim/colors/perette.vim
