Skip to content

Commit

Permalink
Improve the local Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jan 29, 2025
1 parent fadaad2 commit 400df7d
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
all: local
# For local development, assuming https://github.com/sourcemeta/registry
CMAKE ?= cmake
# For local development, assuming https://github.com/sourcemeta/registry
# is cloned and built as a sibling directory of this repository
local: .always
../registry/build/dist/bin/sourcemeta-registry-index configuration.json ./build
../registry/build/dist/bin/sourcemeta-registry-server ./build
.always:
REGISTRY ?= ../registry/build/dist/bin
BUILD ?= ./build
OUTPUT ?= $(BUILD)/registry

.PHONY: all
all: dev

.PHONY: dev
dev: configuration.json
$(REGISTRY)/sourcemeta-registry-index $< $(OUTPUT)
$(REGISTRY)/sourcemeta-registry-server $(OUTPUT)

.PHONY: clean
clean:
$(CMAKE) -E rm -R -f $(BUILD)

0 comments on commit 400df7d

Please sign in to comment.