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 --- Template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Template') diff --git a/Template b/Template index d3b4ecc..715d2f1 100644 --- a/Template +++ b/Template @@ -7,10 +7,12 @@ define TOOL_templ $(1): $(1)_prehook $$($(1)-lex) $$($(1)-yaac) $$(patsubst %.o,$(1)/%.o,$$($(1)-objs)) $(1)_clean: $(1)_clean_custom $(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz) - $(1)_install: $(1)_install_custom + $(1)_do_install: $(Q)$$(call INSTX,$(1)/$(1),$$(SBINDIR)) $(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(MAN8DIR)) + $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(ETCDIRE));) + $(1)_install: $(1)_do_install $(1)_post_install $(1)_uninstall: $(1)_uninstall_custom $(Q)$$(call RM,$$(SBINDIR)/$(1)) $(Q)$$(call RM,$$(MAN8DIR)/$(1).8.gz) -- cgit v1.2.3-54-g00ecf