view DEFS.mk @ 22:5581ef01f993

Regen all the AG output. This also fixes the line number output in the tools (cgbigen/helpgen/help2html), apparently because those files weren't regenerated last go.
author David A. Holland
date Mon, 13 Jun 2022 00:06:39 -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