Skip to content
Snippets Groups Projects
Commit d2da4016 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Push condition down into sub-directory.

* Adding condition for optional builds without Fortran should make
  the conditional in the higher level Makefile unnecessary.
parent 5ef5eb16
No related branches found
No related tags found
No related merge requests found
......@@ -44,12 +44,8 @@ xtincludedir = $(includedir)/xt
nodist_include_HEADERS = yaxt.h
SUBDIRS =
DIST_SUBDIRS =
if with_fortran
SUBDIRS += . f90
DIST_SUBDIRS += f90 .
endif
SUBDIRS = . f90
DIST_SUBDIRS = f90 .
../src/xtinclude_Makefile.inc:
(cd ../src ; if test -r Makefile ; then \
......@@ -87,9 +83,6 @@ clean-local:
rm -rf xt yaxt.h
distclean-local:
if ! with_fortran
rm -f f90/Makefile
endif
-test "$(abs_builddir)" = "$(abs_srcdir)" || rmdir f90
install-data-local: yaxt.h $(xtinclude_HEADERS)
......
......@@ -158,6 +158,7 @@ $(XT_XMAP_RENAME_MOD_NAME).$(FCMODEXT): ../../src/$(XT_XMAP_RENAME_MOD_NAME).$(F
##MODULE_RECIPE_MARKER do not remove ##
if with_fortran
##INCLUDE_HEADER_MARKER do not remove ##
nodist_include_HEADERS= \
$(XT_XMAP_RENAME_MOD_NAME).$(FCMODEXT) \
......@@ -182,6 +183,7 @@ nodist_include_HEADERS= \
$(XT_IDXVEC_MOD_NAME).$(FCMODEXT) \
$(XT_IDXSTRIPES_MOD_NAME).$(FCMODEXT) \
$(YAXT_MOD_NAME).$(FCMODEXT)
endif
clean-local:
rm -f *.$(FCMODEXT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment