"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Makefile" between
ferm-2.5.1.tar.xz and ferm-2.6.tar.xz

About: ferm is a tool to maintain and setup complicated firewall rules.

Makefile  (ferm-2.5.1.tar.xz):Makefile  (ferm-2.6.tar.xz)
skipping to change at line 14 skipping to change at line 14
TOPDIR = . TOPDIR = .
include $(TOPDIR)/config.mk include $(TOPDIR)/config.mk
VERSION := $(shell $(PERL) src/ferm --version | awk '{print $$2}' | head -1 | tr -d ',') VERSION := $(shell $(PERL) src/ferm --version | awk '{print $$2}' | head -1 | tr -d ',')
DISTDIR = build/ferm-$(VERSION) DISTDIR = build/ferm-$(VERSION)
.PHONY: all clean .PHONY: all clean
all: doc/ferm.txt doc/ferm.html doc/ferm.1 doc/import-ferm.1 all: doc/ferm.txt doc/ferm.html doc/ferm.1 doc/import-ferm.1 ferm.service
clean: clean:
rm -rf build rm -rf build
rm -f doc/ferm.txt doc/ferm.html doc/ferm.1 doc/import-ferm.1 *.tmp rm -f doc/ferm.txt doc/ferm.html doc/ferm.1 doc/import-ferm.1 *.tmp
rm -f ferm.service
ferm.service: ferm.service.in
sed 's|@prefix@|$(PREFIX)|g' $< > $@
# #
# documentation # documentation
# #
doc/ferm.txt: doc/ferm.pod doc/ferm.txt: doc/ferm.pod
pod2text $< > $@ pod2text $< > $@
doc/ferm.html: doc/ferm.pod doc/ferm.html: doc/ferm.pod
pod2html $< --title="ferm - Firewall rules made easy" --flush > $@ pod2html $< --title="ferm - Firewall rules made easy" --flush > $@
skipping to change at line 59 skipping to change at line 63
FERM_SCRIPTS += $(wildcard test/modules/*.ferm) $(wildcard test/targets/*.ferm) FERM_SCRIPTS += $(wildcard test/modules/*.ferm) $(wildcard test/targets/*.ferm)
FERM_SCRIPTS += $(wildcard test/protocols/*.ferm) $(wildcard test/misc/*.ferm) FERM_SCRIPTS += $(wildcard test/protocols/*.ferm) $(wildcard test/misc/*.ferm)
FERM_SCRIPTS += $(wildcard test/glob/*.ferm) FERM_SCRIPTS += $(wildcard test/glob/*.ferm)
FERM_SCRIPTS += $(wildcard test/ipv6/*.ferm) FERM_SCRIPTS += $(wildcard test/ipv6/*.ferm)
FERM_SCRIPTS += $(wildcard test/resolve/*.ferm) FERM_SCRIPTS += $(wildcard test/resolve/*.ferm)
FERM_SCRIPTS += $(wildcard test/arptables/*.ferm) $(wildcard test/ebtables/*.fer m) FERM_SCRIPTS += $(wildcard test/arptables/*.ferm) $(wildcard test/ebtables/*.fer m)
EXCLUDE_IMPORT = EXCLUDE_IMPORT =
IMPORT_SCRIPTS = $(filter-out $(EXCLUDE_IMPORT) test/arptables/% test/ebtables/% ,$(FERM_SCRIPTS)) IMPORT_SCRIPTS = $(filter-out $(EXCLUDE_IMPORT) test/arptables/% test/ebtables/% ,$(FERM_SCRIPTS))
PRESERVE_SCRIPTS += $(wildcard test/preserve/*.ferm)
# just a hack # just a hack
RESULT_SED += -e 's,--protocol,-p,g' RESULT_SED += -e 's,--protocol,-p,g'
RESULT_SED += -e 's,--in-interface,-i,g' RESULT_SED += -e 's,--in-interface,-i,g'
RESULT_SED += -e 's,--out-interface,-o,g' RESULT_SED += -e 's,--out-interface,-o,g'
RESULT_SED += -e 's,--destination ,-d ,g' RESULT_SED += -e 's,--destination ,-d ,g'
RESULT_SED += -e 's,--source ,-s ,g' RESULT_SED += -e 's,--source ,-s ,g'
RESULT_SED += -e 's,--match ,-m ,g' RESULT_SED += -e 's,--match ,-m ,g'
RESULT_SED += -e 's,--jump,-j,g' RESULT_SED += -e 's,--jump,-j,g'
RESULT_SED += -e 's,--goto,-g,g' RESULT_SED += -e 's,--goto,-g,g'
RESULT_SED += -e 's,--fragment,-f,g' RESULT_SED += -e 's,--fragment,-f,g'
RESULT_SED += -e '/^\#/d'
EB_ARP_RESULT_SED = -e 's,--jump,-j,g' EB_ARP_RESULT_SED = -e 's,--jump,-j,g'
$(STAMPDIR)/test/arptables/%.result: test/arptables/%.ferm src/ferm $(STAMPDIR)/test/arptables/%.result: test/arptables/%.ferm src/ferm
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
$(PERL) src/ferm --test --slow $< |sed $(EB_ARP_RESULT_SED) >$@ $(PERL) src/ferm --test --slow $< |sed $(EB_ARP_RESULT_SED) >$@
$(STAMPDIR)/test/ebtables/%.result: test/ebtables/%.ferm src/ferm $(STAMPDIR)/test/ebtables/%.result: test/ebtables/%.ferm src/ferm
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
$(PERL) src/ferm --test --slow $< |$(PERL) test/ebtables_tempfile_rename. pl |sed $(EB_ARP_RESULT_SED) >$@ $(PERL) src/ferm --test --slow $< |$(PERL) test/ebtables_tempfile_rename. pl |sed $(EB_ARP_RESULT_SED) >$@
skipping to change at line 106 skipping to change at line 113
$(PERL) test/sort.pl <$< >$@ $(PERL) test/sort.pl <$< >$@
$(STAMPDIR)/%.check: $(STAMPDIR)/%.sort $(STAMPDIR)/%.result $(STAMPDIR)/%.check: $(STAMPDIR)/%.sort $(STAMPDIR)/%.result
diff -u $^ diff -u $^
@touch $@ @touch $@
$(STAMPDIR)/%.check-import: $(STAMPDIR)/%.SAVE $(STAMPDIR)/%.SAVE2 $(STAMPDIR)/%.check-import: $(STAMPDIR)/%.SAVE $(STAMPDIR)/%.SAVE2
diff -u $^ diff -u $^
@touch $@ @touch $@
$(STAMPDIR)/test/preserve/%.preserved: test/preserve/%.ferm src/ferm test/sort.p
l $(STAMPDIR)/test/mock/preserve.SAVE2
@mkdir -p $(dir $@)
$(PERL) src/ferm --test --test-mock-previous=ip=$(STAMPDIR)/test/mock/pre
serve.SAVE2 $< |$(PERL) test/sort.pl |sed $(RESULT_SED) >$@
$(STAMPDIR)/test/preserve/%.expected: test/preserve/%.result
@mkdir -p $(dir $@)
sed $(RESULT_SED) $< >$@
$(STAMPDIR)/test/preserve/%.check-preserve: $(STAMPDIR)/test/preserve/%.preserve
d $(STAMPDIR)/test/preserve/%.expected
diff -u $^
@touch $@
.PHONY : check-ferm check-import check .PHONY : check-ferm check-import check
check-ferm: $(patsubst %.ferm,$(STAMPDIR)/%.check,$(FERM_SCRIPTS)) check-ferm: $(patsubst %.ferm,$(STAMPDIR)/%.check,$(FERM_SCRIPTS))
check-import: $(patsubst %.ferm,$(STAMPDIR)/%.check-import,$(IMPORT_SCRIPTS)) check-import: $(patsubst %.ferm,$(STAMPDIR)/%.check-import,$(IMPORT_SCRIPTS))
check: check-ferm check-import check-preserve: $(patsubst %.ferm,$(STAMPDIR)/%.check-preserve,$(PRESERVE_SCRIPT
S))
check: check-ferm check-import check-preserve
@echo "All ferm unit tests finished successfully." @echo "All ferm unit tests finished successfully."
# #
# distribution # distribution
# #
.PHONY: dist .PHONY: dist
build/ferm-$(VERSION).tar.gz: all build/ferm-$(VERSION).tar.gz: all
rm -rf $(DISTDIR) rm -rf $(DISTDIR)
 End of changes. 6 change blocks. 
2 lines changed or deleted 27 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)