#--*- Makefile -*--

# This Makefile generates a local configure Makefile from an example
# provided in the repository. An existing file is not overwritten, so
# you can provide your own configuration overrides. In particular, you
# can set you local 'tools/' directory in the beginning of the PATH:

# PATH := tools:${PATH}

# In this way, a local 'mkcomdepend' will be used instead of a system
# one, which can be handy in case the system-wide 'mkcomdepend' does
# not work properly.

MAKECONFIG_EXAMPLES = $(filter-out %~, $(wildcard Makeconf*.example))
GENERATED_MAKECONFIGS = ${MAKECONFIG_EXAMPLES:%.example=%}

include ${GENERATED_MAKECONFIGS}

Makeconf%: Makeconf%.example
	if [ ! -f $@ ]; then cp $< $@; \
	else touch $@; fi
