diff --git a/Shorewall-lite/Makefile b/Shorewall-lite/Makefile index 591d5fa11..8c27979e0 100644 --- a/Shorewall-lite/Makefile +++ b/Shorewall-lite/Makefile @@ -3,9 +3,9 @@ VARDIR=$(shell /sbin/shorewall-lite show vardir) SHAREDIR=/usr/share/shorewall-lite RESTOREFILE?=.restore -all: $(VARDIR)/${RESTOREFILE} +all: $(VARDIR)/$(RESTOREFILE) -$(VARDIR)/${RESTOREFILE}: $(VARDIR)/firewall +$(VARDIR)/$(RESTOREFILE): $(VARDIR)/firewall @/sbin/shorewall-lite -q save >/dev/null; \ if \ /sbin/shorewall-lite -q restart >/dev/null 2>&1; \ diff --git a/Shorewall/Makefile b/Shorewall/Makefile index 80f511dfa..e5ba97e18 100644 --- a/Shorewall/Makefile +++ b/Shorewall/Makefile @@ -3,9 +3,9 @@ VARDIR=$(shell /sbin/shorewall show vardir) CONFDIR=/etc/shorewall RESTOREFILE?=firewall -all: $(VARDIR)/${RESTOREFILE} +all: $(VARDIR)/$(RESTOREFILE) -$(VARDIR)/${RESTOREFILE}: $(CONFDIR)/* +$(VARDIR)/$(RESTOREFILE): $(CONFDIR)/* @/sbin/shorewall -q save >/dev/null; \ if \ /sbin/shorewall -q restart >/dev/null 2>&1; \ diff --git a/Shorewall6-lite/Makefile b/Shorewall6-lite/Makefile index a7a8ba78e..604ab514d 100644 --- a/Shorewall6-lite/Makefile +++ b/Shorewall6-lite/Makefile @@ -3,9 +3,9 @@ VARDIR=$(shell /sbin/shorewall6-lite show vardir) SHAREDIR=/usr/share/shorewall6-lite RESTOREFILE?=.restore -all: $(VARDIR)/${RESTOREFILE} +all: $(VARDIR)/$(RESTOREFILE) -$(VARDIR)/${RESTOREFILE}: $(VARDIR)/firewall +$(VARDIR)/$(RESTOREFILE): $(VARDIR)/firewall @/sbin/shorewall6-lite -q save >/dev/null; \ if \ /sbin/shorewall6-lite -q restart >/dev/null 2>&1; \ diff --git a/Shorewall6/Makefile b/Shorewall6/Makefile index a05377601..35e09d070 100644 --- a/Shorewall6/Makefile +++ b/Shorewall6/Makefile @@ -3,9 +3,9 @@ VARDIR=$(shell /sbin/shorewall6 show vardir) CONFDIR=/etc/shorewall6 RESTOREFILE?=firewall -all: $(VARDIR)/${RESTOREFILE} +all: $(VARDIR)/$(RESTOREFILE) -$(VARDIR)/${RESTOREFILE}: $(CONFDIR)/* +$(VARDIR)/$(RESTOREFILE): $(CONFDIR)/* @/sbin/shorewall6 -q save >/dev/null; \ if \ /sbin/shorewall6 -q restart >/dev/null 2>&1; \