Skip to content

Commit a6c9542

Browse files
committed
fix: ifneq and endif dev targets
Signed-off-by: Paul Bastide <[email protected]>
1 parent a836891 commit a6c9542

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,25 +117,25 @@ dev-teardown:
117117
# Configuration for IBM Development only
118118

119119
.PHONY: dev-config-linux
120-
dev-config-linux: dev-stop-linux-named dev-stop-linux-haproxy
120+
dev-config-linux: dev-stop-linux-named dev-stop-linux-haproxy dev-config-linux-resolv
121121

122122
.PHONY: dev-stop-linux-named
123123
dev-stop-linux-named:
124-
ifneq("inactive","$(shell systemctl is-failed named)")
125-
systemctl stop named
126-
end
124+
ifneq ("inactive", "$(shell systemctl is-failed named)")
125+
@systemctl stop named
126+
endif
127127

128128
.PHONY: dev-stop-linux-haproxy
129129
dev-stop-linux-haproxy:
130-
ifneq("inactive","$(shell systemctl is-failed haproxy)")
131-
systemctl stop haproxy
132-
end
130+
ifneq ("inactive","$(shell systemctl is-failed haproxy)")
131+
@systemctl stop haproxy
132+
endif
133133

134134
.PHONY: dev-config-linux-resolv
135135
dev-config-linux-resolv:
136-
ifeq("", "$(shell grep 10.0.10.4 /etc/resolv.conf)")
137-
echo "nameserver 10.0.10.4" >> /etc/resolv.conf
138-
end
136+
ifneq ("", "$(shell grep 10.0.10.4 /etc/resolv.conf)")
137+
@echo "nameserver 10.0.10.4" >> /etc/resolv.conf
138+
endif
139139

140140
########################################################################
141141
# Container Targets

0 commit comments

Comments
 (0)