diff --git a/Makefile.in b/Makefile.in index e3593adf3..5b8879508 100644 --- a/Makefile.in +++ b/Makefile.in @@ -97,6 +97,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ #### End of system configuration section. #### ###################################################################### +# Main build targets .SUFFIXES: @@ -147,6 +148,9 @@ verilator_exe verilator_bin$(EXEEXT) verilator_bin_dbg$(EXEEXT) verilator_covera @echo "making verilator in src" $(MAKE) -C src $(OBJCACHE_JOBS) +###################################################################### +# Tests + .PHONY:msg_test msg_test: all_nomsg @echo "Build complete!" @@ -184,6 +188,9 @@ examples: all_nomsg $(MAKE) -C $$p VERILATOR_ROOT=`pwd` || exit 10; \ done +###################################################################### +# Docs + .PHONY: docs docs: info @@ -205,6 +212,20 @@ verilator.html: verilator.pdf: Makefile $(MAKE) -C docs verilator.pdf +TAGFILES=${srcdir}/*/*.cpp ${srcdir}/*/*.h ${srcdir}/*/*.in \ + ${srcdir}/*.in ${srcdir}/*.pod + +TAGS: $(TAGFILES) + etags $(TAGFILES) + +.PHONY: doxygen + +doxygen: + $(MAKE) -C docs doxygen + +###################################################################### +# Install + # Public executables intended to be invoked directly by the user # Don't put wildcards in these variables, it might cause an uninstall of other stuff VL_INST_PUBLIC_SCRIPT_FILES = verilator \ @@ -345,6 +366,19 @@ install-all: installbin installredirect installman installdata install-msg install-here: installman info +install-msg: + @echo + @echo "Installed binaries to $(DESTDIR)$(bindir)/verilator" + @echo "Installed man to $(DESTDIR)$(mandir)/man1" + @echo "Installed examples to $(DESTDIR)$(pkgdatadir)/examples" + @echo + @echo "For documentation see 'man verilator' or 'verilator --help'" + @echo "For forums and to report bugs see https://verilator.org" + @echo + +###################################################################### +# Format/Lint + # Use --xml flag to see the cppcheck code to use for suppression CPPCHECK1_CPP = $(wildcard $(srcdir)/include/*.cpp) CPPCHECK2_CPP = $(wildcard $(srcdir)/examples/*/*.cpp) @@ -492,15 +526,8 @@ lint-py-ruff: format-exec: -chmod a+x test_regress/t/*.py -install-msg: - @echo - @echo "Installed binaries to $(DESTDIR)$(bindir)/verilator" - @echo "Installed man to $(DESTDIR)$(mandir)/man1" - @echo "Installed examples to $(DESTDIR)$(pkgdatadir)/examples" - @echo - @echo "For documentation see 'man verilator' or 'verilator --help'" - @echo "For forums and to report bugs see https://verilator.org" - @echo +###################################################################### +# Configure IN_WILD := ${srcdir}/*.in ${srcdir}/*/*.in @@ -521,6 +548,9 @@ else autoconf endif +###################################################################### +# Clean + maintainer-clean:: @echo "This command is intended for maintainers to use;" @echo "rebuilding the deleted files requires autoconf." @@ -551,17 +581,6 @@ distclean maintainer-clean:: rm -f bin/verilator_bin* bin/verilator_coverage_bin* rm -f include/verilated.mk include/verilated_config.h -TAGFILES=${srcdir}/*/*.cpp ${srcdir}/*/*.h ${srcdir}/*/*.in \ - ${srcdir}/*.in ${srcdir}/*.pod - -TAGS: $(TAGFILES) - etags $(TAGFILES) - -.PHONY: doxygen - -doxygen: - $(MAKE) -C docs doxygen - ###################################################################### # Distributions