Skip to content

Commit 2a1ffc3

Browse files
committed
Increase precision of "*out*" and update phony target
Prevents us from catching any file path that contains out and now only catches files in the out dir
1 parent 6a873f9 commit 2a1ffc3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ WEBSITE_SRC_PATH := web_ui/frontend
4646
WEBSITE_OUT_PATH := web_ui/frontend/out
4747
WEBSITE_CACHE_PATH := web_ui/frontend/.next
4848

49-
WEBSITE_SRC_FILES := $(shell find $(WEBSITE_SRC_PATH) -type f -not -path "*.next*" -not -path "*out*" -not -path "*node_modules*" -not -path "*pelican-swagger.yaml")
49+
WEBSITE_SRC_FILES := $(shell find $(WEBSITE_SRC_PATH) -type f -not -path "*.next*" -not -path "*/out/*" -not -path "*node_modules*" -not -path "*pelican-swagger.yaml")
5050
WEBSITE_CLEAN_LIST := $(WEBSITE_OUT_PATH) \
5151
$(WEBSITE_CACHE_PATH)
5252

53-
$(info These files have changed causing the website to have to rebuild: [$(shell find $(WEBSITE_SRC_PATH) -type f -not -path "*.next*" -not -path "*out*" -not -path "*node_modules*" -not -path "*pelican-swagger.yaml" -newer web_ui/frontend/out/index.html)])
53+
$(info These files have changed causing the website to have to rebuild: [$(shell find $(WEBSITE_SRC_PATH) -type f -not -path "*.next*" -not -path "*/out/*" -not -path "*node_modules*" -not -path "*pelican-swagger.yaml" -newer web_ui/frontend/out/index.html)])
5454

5555

5656
.PHONY: all
@@ -120,9 +120,9 @@ else
120120
@$(CONTAINER_TOOL) run -w /app -v $(PWD):/app goreleaser/goreleaser --clean --snapshot
121121
endif
122122

123-
.PHONY: pelican-build
123+
.PHONY: pelican-dev-build
124124
pelican-dev-build:
125-
@echo PELICAN BUILD
125+
@echo PELICAN DEV BUILD
126126
ifeq ($(USE_DOCKER),0)
127127
@goreleaser --clean --snapshot --config .goreleaser.dev.yml
128128
else

0 commit comments

Comments
 (0)