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