Split program into 3 binaries

This commit is contained in:
Glenn Y. Rolland 2021-04-04 23:37:02 +02:00
parent 04fa3fe354
commit bab60ec856
2 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,10 @@
BINARIES=hodler
hodler_FILES=$(wildcard src/*.cr src/**/*.cr)
BINARIES=hodlerctl hodlertui hodlerweb
lib_FILES=$(wildcard src/lib/*.cr src/lib/**/*.cr)
hodlerctl_FILES=$(wildcard src/hodlerctl/*.cr src/hodlerctl/**/*.cr) $(lib_FILES)
hodlertui_FILES=$(wildcard src/hodlertui/*.cr src/hodlertui/**/*.cr) $(lib_FILES)
hodlerweb_FILES=$(wildcard src/hodlerweb/*.cr src/hodlerweb/**/*.cr) $(lib_FILES)
all: build

View file

@ -9,8 +9,12 @@ description: |
Crypto-currencies porfolio monitoring tool
targets:
hodler:
main: src/main.cr
hodlerctl:
main: src/hodlerctl/main.cr
hodlertui:
main: src/hodlertui/main.cr
hodlerweb:
main: src/hodlerweb/main.cr
dependencies:
# Handle XDG environment variables