diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-14 15:10:15 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-14 15:10:15 +0200 |
commit | b5db443e823fffb2afb818e27a07cb25b87803e6 (patch) | |
tree | 53504de54db861d9f0c43821507acc82de3d71f3 /Makefile | |
parent | a5ed00f953c7eac5262b18ad52f9e2975b277f7b (diff) |
build: install man pages
Now that we have some man-pages, let them be installed via normal
``make install'' call.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -21,6 +21,7 @@ SBINDIR = $(PREFIX)/usr/sbin INCDIR = $(PREFIX)/usr/include ETCDIR = $(PREFIX)/etc ETCDIRE = $(ETCDIR)/netsniff-ng +MAN8DIR = $(PREFIX)/usr/share/man/man8 # Shut up make, helper warnings, parallel compilation! MAKEFLAGS += --no-print-directory @@ -134,6 +135,7 @@ GIT_LOG = git shortlog -n --not $(shell git describe --abbrev=0 --tags) GIT_REM = git ls-files -o | xargs rm -rf GIT_PEOPLE = git log --no-merges $(VERSION_STRING)..HEAD | grep Author: | cut -d: -f2 | \ cut -d\< -f1 | sort | uniq -c | sort -nr +GZIP = gzip --best -c export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION export CROSS_COMPILE @@ -199,11 +201,14 @@ define TOOL_templ $(Q)echo "$(bold)$(WHAT) $(1):$(normal)" $(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)) + $(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz) $(1)_install: $(1)_install_custom $(Q)$$(call INSTX,$(1)/$(1),$$(SBINDIR)) + $(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz + $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(MAN8DIR)) $(1)_distclean: $(1)_distclean_custom $(Q)$$(call RM,$$(SBINDIR)/$(1)) + $(Q)$$(call RM,$$(MAN8DIR)/$(1).8.gz) $(1)/%.yy.o: $(1)/%.yy.c $$(CC) $$(ALL_CFLAGS) -o $$@ -c $$< $(1)/%.tab.o: $(1)/%.tab.c |