Skip to content

Commit 303bb99

Browse files
Updating for v1.1.1 release
1 parent d7b14fa commit 303bb99

File tree

2 files changed

+39
-27
lines changed

2 files changed

+39
-27
lines changed

efficient-implied-alignment.cabal

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 2.2
1+
cabal-version: 3.0
22
category: Algorithms
33
build-type: Simple
44

@@ -7,9 +7,9 @@ version: 1.1.1
77

88
author: Alex Washburn
99
maintainer: [email protected]
10-
copyright: 2020 Alex Washburn
10+
copyright: 2019 Alex Washburn
1111
license: BSD-3-Clause
12-
license-file: LICENSE
12+
license-file: doc/LICENSE
1313

1414
synopsis: Proof of concept of efficient multiple string alignment
1515

@@ -21,7 +21,7 @@ description: Using a commutative, binary string alignment operator and a
2121
case /O(n*k*log(k))/ and the pre-order traversal should be
2222
/O(n*k)/.
2323

24-
homepage: https://github.com/recursion-ninja/efficient-implied-alignment#readme
24+
homepage: https://github.com/recursion-ninja/efficient-implied-alignment
2525
bug-reports: https://github.com/recursion-ninja/efficient-implied-alignment/issues
2626

2727
tested-with:
@@ -32,6 +32,7 @@ tested-with:
3232

3333
extra-source-files:
3434
doc/CHANGELOG.md
35+
doc/LICENSE
3536
doc/README.md
3637

3738
source-repository head

makefile

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,14 @@
88

99
dir-bin := ./bin
1010
dir-data := replicate-results
11-
bin-aln := implied-align
12-
bin-aln-path := $(dir-bin)/$(bin-aln)
13-
bin-gen := generate-timings
14-
bin-gen-path := $(dir-bin)/$(bin-gen)
11+
programs-needed := generate-timings implied-align newick-add-delete-taxon reduce-fasta
12+
programs-placed := $(addprefix $(dir-bin)/,$(programs-needed))
1513
measure-script := measure-scaling-performance.sh
1614
measure-dataset := $(dir-bin)/$(measure-script) using
17-
prerequisites := $(bin-aln-path) $(bin-aln-path) ensure-python ensure-workspace
18-
15+
prerequisites := $(programs-placed) ensure-python ensure-workspace
1916

2017
# All synonyms for replicating the paper's results.
21-
replicate: results
22-
23-
reproduce: results
24-
25-
results: fungi metazoa pathological
18+
replicate reproduce results: fungi metazoa pathological
2619

2720

2821
# Install dependencies required to replicate results.
@@ -45,16 +38,20 @@ ensure-workspace:
4538

4639

4740
# Build binaries
48-
require := ensure-haskell $(wildcard app/**/*.hs) $(wildcard src/**/*.hs)
49-
install := ghcup run --ghc 9.2.1 --cabal 3.6.2.0 -- \
50-
cabal update && cabal install $(bin-gen) $(bin-aln) \
51-
--installdir=$(dir-bin) --install-method=copy
41+
project := cabal.project efficient-implied-alignment.cabal
42+
sources := $(wildcard app/**/*.hs) $(wildcard src/**/*.hs)
43+
require := ensure-haskell $(project) $(sources)
44+
compile := ghcup run --ghc 9.2.1 --cabal 3.6.2.0 --
45+
46+
install: $(refresh) $(require)
47+
@$(compile) cabal install \
48+
$(programs-needed) --installdir=$(dir-bin) --install-method=copy
5249

53-
$(bin-aln-path): $(require)
54-
@$(install)
50+
refresh:
51+
@$(compile) cabal update
5552

56-
$(bin-gen-path): $(require)
57-
@$(install)
53+
$(programs-placed):
54+
@$(MAKE) --no-print-directory install
5855

5956

6057
# Generate timing data of data sets
@@ -95,7 +92,21 @@ measure:
9592

9693
# Clean up after replicating results
9794
clean:
98-
@rm -fr replicate-results
99-
@rm -fr dist-newstyle
100-
@rm -f $(bin-aln-path)
101-
@rm -f $(bin-gen-path)
95+
rm -fr replicate-results
96+
rm -fr dist-newstyle
97+
rm -f $(programs-placed)
98+
99+
.PHONY: \
100+
clean \
101+
ensure-haskell \
102+
ensure-python \
103+
ensure-workspace \
104+
fungi \
105+
install \
106+
measure \
107+
metazoa \
108+
pathological \
109+
refresh \
110+
replicate \
111+
reproduce \
112+
results

0 commit comments

Comments
 (0)