Commit 6f07f40f authored by tibbe's avatar tibbe

Refactor fasta Makefile

parent 453d2e43
...@@ -16,9 +16,6 @@ HC_OPTS += -O2 -XBangPatterns -XOverloadedStrings -package bytestring ...@@ -16,9 +16,6 @@ HC_OPTS += -O2 -XBangPatterns -XOverloadedStrings -package bytestring
#------------------------------------------------------------------ #------------------------------------------------------------------
# Create output to validate against # Create output to validate against
# FIXME: You have to run make twice for the runstdtest.prl script to
# find the various stdout files correctly.
fasta-c : fasta-c.o fasta-c : fasta-c.o
gcc $< -o $@ gcc $< -o $@
...@@ -31,21 +28,21 @@ fasta.stdout : fasta-c ...@@ -31,21 +28,21 @@ fasta.stdout : fasta-c
fasta.slowstdout : fasta-c fasta.slowstdout : fasta-c
./fasta-c $(SLOW_OPTS) > $@ ./fasta-c $(SLOW_OPTS) > $@
STDOUT_FILES = fasta.faststdout fasta.stdout fasta.slowstdout
# Since the stdout files are created during the run the runstdtest # Since the stdout files are created during the run the runstdtest
# script doesn't correctly pick them up, so we have to specify them # script doesn't correctly pick them up, so we have to specify them
# explicitly here. # explicitly here.
ifeq "$(mode)" "slow" ifeq "$(mode)" "slow"
SRC_RUNTEST_OPTS += -o1 fasta.slowstdout STDOUT_FILE = fasta.slowstdout
else else
ifeq "$(mode)" "fast" ifeq "$(mode)" "fast"
SRC_RUNTEST_OPTS += -o1 fasta.faststdout STDOUT_FILE = fasta.faststdout
else else
SRC_RUNTEST_OPTS += -o1 fasta.stdout STDOUT_FILE = fasta.stdout
endif endif
endif endif
all boot :: $(STDOUT_FILES) SRC_RUNTEST_OPTS += -o1 $(STDOUT_FILE)
all boot :: $(STDOUT_FILE)
include $(TOP)/mk/target.mk include $(TOP)/mk/target.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment