diff options
Diffstat (limited to 'hl/fortran/Makefile.am')
-rw-r--r-- | hl/fortran/Makefile.am | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/hl/fortran/Makefile.am b/hl/fortran/Makefile.am index 9a75aa0..920e6be 100644 --- a/hl/fortran/Makefile.am +++ b/hl/fortran/Makefile.am @@ -31,11 +31,16 @@ DIST_SUBDIRS=src test examples install-examples uninstall-examples: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; -# Check that examples can be successfully built -check-install: - @$(MAKE) $(AM_MAKEFLAGS) installcheck - installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; +# Clean examples when check-clean is invoked +check-clean :: + @$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1; + @for d in X $(SUBDIRS) examples; do \ + if test $$d != X && test $$d != .; then \ + (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done + include $(top_srcdir)/config/conclude.am |