Skip to content

Commit 946070d

Browse files
committed
Updated Makefile for multiple packages support
1 parent b128ae6 commit 946070d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ GOFMT ?= gofmt -w
1010

1111
NAME = scw
1212
SRC = .
13+
PACKAGES = api commands utils
1314
REV = $(shell git rev-parse HEAD || echo "nogit")
1415
TAG = $(shell git describe --tags --always || echo "nogit")
1516
BUILDER = scaleway-cli-builder
1617

1718

1819
BUILD_LIST = $(foreach int, $(SRC), $(int)_build)
19-
CLEAN_LIST = $(foreach int, $(SRC), $(int)_clean)
20+
CLEAN_LIST = $(foreach int, $(SRC) $(PACKAGES), $(int)_clean)
2021
INSTALL_LIST = $(foreach int, $(SRC), $(int)_install)
21-
IREF_LIST = $(foreach int, $(SRC), $(int)_iref)
22-
TEST_LIST = $(foreach int, $(SRC), $(int)_test)
23-
FMT_LIST = $(foreach int, $(SRC), $(int)_fmt)
22+
IREF_LIST = $(foreach int, $(SRC) $(PACKAGES), $(int)_iref)
23+
TEST_LIST = $(foreach int, $(SRC) $(PACKAGES), $(int)_test)
24+
FMT_LIST = $(foreach int, $(SRC) $(PACKAGES), $(int)_fmt)
2425

2526

2627
.PHONY: $(CLEAN_LIST) $(TEST_LIST) $(FMT_LIST) $(INSTALL_LIST) $(BUILD_LIST) $(IREF_LIST)

0 commit comments

Comments
 (0)