# --*- Makefile -*-------------------------------------------------------------
#$Author: saulius $
#$Date: 2024-01-06 12:58:19 +0000 (Sat, 06 Jan 2024) $
#$Revision: 11025 $
#$URL: file:///home/saulius/svn-repositories/paskaitos/VU/programavimo-metodologijos-pagrindai/u%C5%BEduotys-praktikai/matric%C5%B3-rnp-kalkuliatoriaus-u%C5%BEduotis/Makefile $
#------------------------------------------------------------------------------
#*
# Include all local Make files (Makelocal*, see the patterns below),
# and all local Make configuration files. All targets from these files
# will become available for the 'make' command.
#
# USAGE:
#    # builds prerequisites of every 'all' targets in every Makelocal* file:
#    make
#    make all
#
#    # cleans all generated files using every 'Makelocal*' file's rules:
#    make clean
#    make distclean
#
# Dependencies: needs GNU Make or compatible Make system.
#**

MAKEFILE_DIRS = . makefiles/enabled
MAKEFILE_WCARDS = $(addsuffix /Makelocal*, ${MAKEFILE_DIRS})
MAKECONF_WCARDS = $(addsuffix /Makeconf*, ${MAKEFILE_DIRS})

MAKECONF_FILES = $(filter-out %.example, \
	$(filter-out %~, $(wildcard ${MAKECONF_WCARDS}) \
))

ifneq ("${MAKECONF_FILES}","")
include ${MAKECONF_FILES}
endif

.PHONY: all clean distclean cleanAll

all:

clean:

cleanAll distclean: clean

MAKELOCAL_FILES = ${filter-out %~, ${wildcard ${MAKEFILE_WCARDS}}}

ifneq ("${MAKELOCAL_FILES}","")
include ${MAKELOCAL_FILES}
endif
