Skip to content

Commit

Permalink
now generate pionfatt_mod.F90 from pionfatt_mod.F90.in in autotools b…
Browse files Browse the repository at this point in the history
…uild
  • Loading branch information
edhartnett committed May 17, 2019
1 parent 5653a48 commit 917827d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/flib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ libpio_la_SOURCES = pio.F90

# These F90 files are generated from .F90.in files, using the script
# genf90.pl.
pionfatt_mod.F90: pionfatt_mod.F90.in
${top_srcdir}/scripts/genf90.pl pionfatt_mod.F90.in > pionfatt_mod.F90
pionfatt_mod.F90: ${top_srcdir}/src/flib/pionfatt_mod.F90.in
${top_srcdir}/scripts/genf90.pl $< > $@

# Each mod file depends on the .o file.
pio_kinds.mod: pio_kinds.$(OBJEXT)
Expand All @@ -55,6 +55,9 @@ pionfput_mod.mod: pionfput_mod.$(OBJEXT)
piolib_mod.mod: piolib_mod.$(OBJEXT)
pio.mod: pio.$(OBJEXT)

# Some mod files depend on other mod files.
pio.$(OBJEXT): pio_kinds.mod piolib_mod.mod pio_types.mod piodarray.mod pio_nf.mod pionfatt_mod.mod pionfget_mod.mod pionfput_mod.mod pio_support.mod

# Mod files are built and then installed as headers.
MODFILES = pio_kinds.mod pio_types.mod pio_support.mod pio_nf.mod \
piodarray.mod pionfatt_mod.mod pionfget_mod.mod pionfput_mod.mod \
Expand All @@ -64,4 +67,5 @@ include_HEADERS = $(MODFILES)

CLEANFILES = *.mod

EXTRA_DIST = CMakeLists.txt
EXTRA_DIST = CMakeLists.txt piodarray.F90.in pionfatt_mod.F90.in \
pionfget_mod.F90.in pionfput_mod.F90.in

0 comments on commit 917827d

Please sign in to comment.