aboutsummaryrefslogtreecommitdiff
path: root/Common/devcontainer/Makefile
blob: b5e53f9f757e543fa28d7f93482ce75579d39e45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
BASEIMAGE := devcontainer-base
M4_SRCS := $(wildcard *.m4)
TARGETS := $(patsubst %.m4,%,$(M4_SRCS))

.PHONE: all clean

all: $(TARGETS)

Dockerfile-base: Dockerfile-base.m4
	m4 -P -D BASEIMAGE="$(BASEIMAGE)" $< > $@
	podman build -t "$(patsubst Dockerfile-%,devcontainer-%,$@)" -f $@

%: %.m4
	m4 -P -D BASEIMAGE="$(BASEIMAGE)" $< > $@
	podman build -t "$(patsubst Dockerfile-%,devcontainer-%,$@)" -f $@

clean:
	rm -f $(TARGETS)