Skip to content

Commit

Permalink
Fix portable Makefile (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Oct 10, 2024
1 parent f43923f commit f8f06bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
-include Makefile.local # for optional local options

BUILD_TARGET ::= bin/catalog_tools
BUILD_TARGET := bin/catalog_tools

# The shards command to use
SHARDS ?= shards
# The crystal command to use
CRYSTAL ?= crystal

SRC_SOURCES ::= $(shell find src -name '*.cr' 2>/dev/null)
LIB_SOURCES ::= $(shell find lib -name '*.cr' 2>/dev/null)
SPEC_SOURCES ::= $(shell find spec -name '*.cr' 2>/dev/null)
SRC_SOURCES := $(shell find src -name '*.cr' 2>/dev/null)
LIB_SOURCES := $(shell find lib -name '*.cr' 2>/dev/null)
SPEC_SOURCES := $(shell find spec -name '*.cr' 2>/dev/null)

.PHONY: build
build: ## Build the application binary
build: $(BUILD_TARGET)

$(BUILD_TARGET): $(SRC_SOURCES) $(LIB_SOURCES) lib
mkdir -p $(shell dirname $(@))
mkdir -p $(@D)
$(CRYSTAL) build src/cli.cr -o $(@)

.PHONY: test
Expand Down

0 comments on commit f8f06bd

Please sign in to comment.