From ae55f524c92aadfae2a94947002c978d80320f32 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 30 Jul 2013 14:15:58 +0200 Subject: build: reduce Extra contents to bare minimum Improve the build system, so that configuration files are installed per tool basis. Also, introduce post_install targets, so that config files can be altered in some way, e.g. done by trafgen. Moreover, move custom targets from Extra to tool-specific Makefiles. Signed-off-by: Daniel Borkmann --- trafgen/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'trafgen/Makefile') diff --git a/trafgen/Makefile b/trafgen/Makefile index a7bf6c4..8868214 100644 --- a/trafgen/Makefile +++ b/trafgen/Makefile @@ -27,3 +27,11 @@ trafgen-yaac = trafgen_parser.tab.o trafgen-eflags = $(shell pkg-config --cflags libnl-3.0) \ $(shell pkg-config --cflags libnl-genl-3.0) \ -DHAVE_DISSECTOR_PROTOS -I.. + +trafgen-confs = trafgen_stddef.h + +trafgen_post_install: + $(Q)mv $(ETCDIRE)/trafgen_stddef.h $(ETCDIRE)/stddef.h + +trafgen_clean_custom: + $(Q)$(call RM,$(BUILD_DIR)/*.h $(BUILD_DIR)/*.c) -- cgit v1.2.3-54-g00ecf