Use an 'include' statement in Makefile to get the value of LITEDIR

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4134 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-06-17 17:59:40 +00:00
parent ea64849806
commit 7d3c83a529

View File

@ -2,9 +2,11 @@
VARDIR=/var/lib/shorewall-lite
SHAREDIR=/usr/share/shorewall-lite
RESTOREFILE?=.restore
include $(SHAREDIR)/configpath
all: $(VARDIR)/${RESTOREFILE}
$(VARDIR)/${RESTOREFILE}: $(VARDIR)/firewall
$(VARDIR)/${RESTOREFILE}: $(LITEDIR)/firewall
@/sbin/shorewall-lite -q save >/dev/null; \
if \
/sbin/shorewall-lite -q restart >/dev/null 2>&1; \