Add 'clean' target to Makefiles

This commit is contained in:
Tom Eastep 2009-08-23 10:43:01 -07:00
parent 267bc808f5
commit e24dbb9aea
5 changed files with 22 additions and 1 deletions

View File

@ -14,4 +14,8 @@ $(VARDIR)/${RESTOREFILE}: $(CONFDIR)/*
/sbin/shorewall -q restart 2>&1 | tail >&2; \
fi
clean:
@rm -f $(CONFDIR)/*~
.PHONY: clean
# EOF

View File

@ -1406,6 +1406,11 @@ sub pop_open() {
pop_include;
}
#
# This function is called by in-line PERL to generate a line of input for the current file.
# If the in-line PERL returns an indication of success, then the generated lines will be
# processed as regular file input.
#
sub shorewall {
unless ( $scriptfile ) {
fatal_error "shorewall() may not be called in this context" unless $currentfile;
@ -1585,6 +1590,10 @@ sub read_a_line() {
# Line not blank -- Handle any first-entry message/capabilities check
#
if ( $first_entry ) {
#
# $first_entry can contain either a function reference or a message. If it
# contains a reference, call the function -- otherwise issue the message
#
reftype( $first_entry ) ? $first_entry->() : progress_message2( $first_entry );
$first_entry = 0;
}

View File

@ -10,6 +10,8 @@ Changes in Shorewall 4.4.1
5) Minor performance improvements.
6) Add 'clean' target to Makefile.
Changes in Shorewall 4.4.0
1) Fix 'compile ... -' so that it no longer requires '-v-1'

View File

@ -208,6 +208,8 @@ None.
accepts all SNAT flags without verifying them and returns them to
iptables when asked.
2) A 'clean' target has been added to the Makefiles.
----------------------------------------------------------------------------
N E W F E A T U R E S I N 4 . 4
----------------------------------------------------------------------------

View File

@ -14,4 +14,8 @@ $(VARDIR)/${RESTOREFILE}: $(CONFDIR)/*
/sbin/shorewall6 -q restart 2>&1 | tail >&2; \
fi
clean:
@rm -f $(CONFDIR)/*~
.PHONY: clean
# EOF