summaryrefslogtreecommitdiff
path: root/trafgen
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-30 14:15:58 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-30 14:15:58 +0200
commitae55f524c92aadfae2a94947002c978d80320f32 (patch)
tree61c6ad518c3b818e57f1f85858bec963c99810ad /trafgen
parent27842082e09359b3b7f5eed59ab21a0a06c5b1d2 (diff)
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 <dborkman@redhat.com>
Diffstat (limited to 'trafgen')
-rw-r--r--trafgen/Makefile8
1 files changed, 8 insertions, 0 deletions
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)