Skip to content

Commit 3ed37f5

Browse files
committed
Makefile fixes
1 parent af00ae4 commit 3ed37f5

File tree

6 files changed

+20
-11
lines changed

6 files changed

+20
-11
lines changed

src/tests/io/Makefile.manual

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ SRCFYPP = \
22
test_loadtxt_qp.fypp \
33
test_savetxt_qp.fypp
44

5+
SRCGEN = $(SRCFYPP:.fypp=.f90)
6+
57
PROGS_SRC = test_loadtxt.f90 \
68
test_savetxt.f90 \
79
test_parse_mode.f90 \
810
test_open.f90 \
9-
$(SRCFYPP:.fypp=.f90)
11+
$(SRCGEN)
1012

11-
$(SRCFYPP): %.f90: %.fypp ../../common.fypp
13+
$(SRCGEN): %.f90: %.fypp ../../common.fypp
1214
fypp -I../.. $(FYPPFLAGS) $< $@
1315

14-
CLEAN_FILES = tmp*.dat io_open.dat io_open.stream
16+
CLEAN_FILES = tmp*.dat io_open.dat io_open.stream $(SRCFYPP:.fypp=.f90) $(PROGS_SRC:.f90=.mod)
1517

1618
include ../Makefile.manual.test.mk

src/tests/linalg/Makefile.manual

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
SRCFYPP = \
22
test_linalg.fypp
3+
SRCGEN = $(SRCFYPP:.fypp=.f90)
34
PROGS_SRC = \
4-
$(SRCFYPP:.fypp=.f90)
5+
$(SRCGEN)
56

6-
$(SRCFYPP): %.f90: %.fypp ../../common.fypp
7+
$(SRCGEN): %.f90: %.fypp ../../common.fypp
78
fypp -I../.. $(FYPPFLAGS) $< $@
89

910

src/tests/math/Makefile.manual

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
SRCFYPP = \
22
test_stdlib_math.fypp
3+
SRCGEN = $(SRCFYPP:.fypp=.f90)
34

45
PROGS_SRC = test_linspace.f90 test_logspace.f90 \
56
test_math_arange.f90 \
6-
$(SRCFYPP:.fypp=.f90)
7+
$(SRCGEN)
78

8-
$(SRCFYPP): %.f90: %.fypp ../../common.fypp
9+
$(SRCGEN): %.f90: %.fypp ../../common.fypp
910
fypp -I../.. $(FYPPFLAGS) $< $@
1011

1112

src/tests/math/test_stdlib_math.fypp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
! SPDX-Identifier: MIT
22

3+
#:include "common.fypp"
4+
35
module test_stdlib_math
46
use testdrive, only : new_unittest, unittest_type, error_type, check, skip_test
57
use stdlib_math, only: clip

src/tests/optval/Makefile.manual

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
SRCFYPP = \
22
test_optval.fypp
3+
SRCGEN = $(SRCFYPP:.fypp=.f90)
4+
35
PROGS_SRC = \
4-
$(SRCFYPP:.fypp=.f90)
6+
$(SRCGEN)
57

6-
$(SRCFYPP): %.f90: %.fypp ../../common.fypp
8+
$(SRCGEN): %.f90: %.fypp ../../common.fypp
79
fypp -I../.. $(FYPPFLAGS) $< $@
810

911
include ../Makefile.manual.test.mk

src/tests/quadrature/Makefile.manual

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
SRCFYPP = \
22
test_simps.fypp \
33
test_trapz.fypp
4+
SRCGEN = $(SRCFYPP:.fypp=.f90)
45
PROGS_SRC = \
56
test_gauss.f90 \
6-
$(SRCFYPP:.fypp=.f90)
7+
$(SRCGEN)
78

8-
$(SRCFYPP): %.f90: %.fypp ../../common.fypp
9+
$(SRCGEN): %.f90: %.fypp ../../common.fypp
910
fypp -I../.. $(FYPPFLAGS) $< $@
1011

1112
include ../Makefile.manual.test.mk

0 commit comments

Comments
 (0)