forked from k3s-io/k3s-selinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CENTOS7_TARGETS := $(addprefix centos7-,$(shell ls policy/centos7/scripts))
CENTOS8_TARGETS := $(addprefix centos8-,$(shell ls policy/centos8/scripts))
CENTOS9_TARGETS := $(addprefix centos9-,$(shell ls policy/centos9/scripts))
MICROOS_TARGETS := $(addprefix microos-,$(shell ls policy/microos/scripts))
SLEMICRO_TARGETS := $(addprefix slemicro-,$(shell ls policy/slemicro/scripts))
COREOS_TARGETS := $(addprefix coreos-,$(shell ls policy/coreos/scripts))
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-$$(uname -s)-$$(uname -m) > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
$(CENTOS7_TARGETS): .dapper
./.dapper -f Dockerfile.centos7.dapper $(@:centos7-%=%)
$(CENTOS8_TARGETS): .dapper
./.dapper -f Dockerfile.centos8.dapper $(@:centos8-%=%)
$(CENTOS9_TARGETS): .dapper
./.dapper -f Dockerfile.centos9.dapper $(@:centos9-%=%)
$(MICROOS_TARGETS): .dapper
./.dapper -f Dockerfile.microos.dapper $(@:microos-%=%)
$(SLEMICRO_TARGETS): .dapper
./.dapper -f Dockerfile.slemicro.dapper $(@:slemicro-%=%)
$(COREOS_TARGETS): .dapper
./.dapper -f Dockerfile.coreos.dapper $(@:coreos-%=%)
.PHONY: $(CENTOS7_TARGETS) $(CENTOS8_TARGETS)