Skip to content

Commit 7d552a7

Browse files
committed
feat: allow using full conf file names
1 parent 56e23d4 commit 7d552a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ preflight:
4242

4343
# Build module
4444
build: check-perms setup ## Build the specified module
45-
time $(WRAPPER) mkosi --force -I $(IMAGE).conf
45+
time $(WRAPPER) mkosi --force -I $(patsubst %.conf,%,$(IMAGE)).conf
4646

4747
# Build module with devtools profile
4848
build-dev: check-perms setup ## Build module with development tools
49-
time $(WRAPPER) mkosi --force --profile=devtools -I $(IMAGE).conf
49+
time $(WRAPPER) mkosi --force --profile=devtools $(patsubst %.conf,%,$(IMAGE)).conf
5050

5151
##@ Utilities
5252

@@ -60,7 +60,7 @@ check-repro: ## Build same module twice and compare resulting images
6060
@sleep 15
6161

6262
@echo "Building image #1..."
63-
time $(WRAPPER) mkosi --force -I $(IMAGE).conf
63+
time $(WRAPPER) mkosi --force -I $(patsubst %.conf,%,$(IMAGE)).conf
6464
@mkdir -p build/cache
6565
@mv mkosi.builddir/* build/cache/
6666
@mv build build.1
@@ -71,7 +71,7 @@ check-repro: ## Build same module twice and compare resulting images
7171
@sleep 15
7272

7373
@echo "Building image #2..."
74-
time $(WRAPPER) mkosi --force -I $(IMAGE).conf
74+
time $(WRAPPER) mkosi --force -I $(patsubst %.conf,%,$(IMAGE)).conf
7575
@mkdir -p build/cache
7676
@mv mkosi.builddir/* build/cache/
7777
@mv build build.2

0 commit comments

Comments
 (0)