1 ### Makefile for firewall scripts
9 ###--------------------------------------------------------------------------
10 ### Local configuration.
12 ## Should set up HOSTS and add stuff to MAIN_M4_SOURCES if necessary.
15 ###--------------------------------------------------------------------------
18 ## The main m4 inputs which construct the firewall. These are read in last
19 ## to allow local configuration to change their environments.
20 MAIN_M4_SOURCES += config.m4
21 MAIN_M4_SOURCES += prologue.m4
22 MAIN_M4_SOURCES += functions.m4
23 MAIN_M4_SOURCES += numbers.m4
24 MAIN_M4_SOURCES += bookends.m4
25 MAIN_M4_SOURCES += classify.m4
26 MAIN_M4_SOURCES += icmp.m4
28 ## All of our m4 inputs. The base gets read first to set things up.
30 M4_SOURCES += $(MAIN_M4_SOURCES)
32 ###--------------------------------------------------------------------------
35 TARGETS = $(addsuffix .sh,$(HOSTS))
37 ###--------------------------------------------------------------------------
43 %.sh: %.m4 $(M4_SOURCES)
44 m4 -P base.m4 $*.m4 $(MAIN_M4_SOURCES) >$@.new
48 clean:; rm -f $(TARGETS) *.new
51 ###----- That's all, folks --------------------------------------------------