summaryrefslogtreecommitdiff
path: root/Template
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 /Template
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 'Template')
-rw-r--r--Template4
1 files changed, 3 insertions, 1 deletions
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)