view DEFS.mk @ 21:1c9dac05d040

Add lint-style FALLTHROUGH annotations to fallthrough cases. (in the parse engine and thus the output code) Document this, because the old output causes warnings with gcc10.
author David A. Holland
date Mon, 13 Jun 2022 00:04:38 -0400
parents 13d2b8934445
children
line wrap: on
line source

DIRS.maintainer=lint oldclasslib examples
DIRS.nonmaintainer=

DIRS.hasptests=ptests
DIRS.noptests=

SUBDIRS=cgbigen helpgen help2html checksum insertsums anagram doc \
	$(DIRS.$(MAINTAINER))
MORESUBDIRS=lint oldclasslib examples tests $(DIRS.$(HASPTESTS))

# leave config.status in case the user wants it
MYDISTCLEANFILES=Makefile rules.mk depend.mk config.mk

include $(TOP)/mk/subdir.mk
include $(TOP)/mk/installdirs.mk

test:
	@echo "run-tests ===> tests"
	@cd tests && $(MAKE) run-tests _SUBDIR_=tests/
	@if [ $(HASPTESTS) = hasptests ]; then \
	    echo "run-tests ===> ptests"; \
	    cd ptests && $(MAKE) run-tests _SUBDIR_=ptests/; \
	 fi
	@echo "show-diffs ===> ..."
	@cd tests && $(MAKE) show-diffs _SUBDIR_=tests/
	@if [ $(HASPTESTS) = hasptests ]; then \
	    cd ptests && $(MAKE) show-diffs _SUBDIR_=ptests/; \
	 fi

clean distclean: cleantest
cleantest:
	@echo "clean ===> tests"
	@cd tests && $(MAKE) clean _SUBDIR_=tests/
	@if [ $(HASPTESTS) = hasptests ]; then \
	    echo "clean ===> ptests"; \
	    cd ptests && $(MAKE) clean _SUBDIR_=ptests/; \
	 fi

install:
	@echo "install ===> anagram/run"
	@cd anagram/run && $(MAKE) install _SUBDIR_=anagram/run/
	@echo "install ===> doc"
	@cd doc && $(MAKE) install _SUBDIR_=doc/
	@echo "install ===> oldclasslib"
	@cd oldclasslib && $(MAKE) install _SUBDIR_=oldclasslib/
	@echo "install ===> examples"
	@cd examples && $(MAKE) install _SUBDIR_=examples/

.PHONY: test cleantest clean distclean install