summaryrefslogtreecommitdiff
path: root/net/mrouted/files/patch-Makefile
blob: 17a99e1a2c672807f202fb7f19654a4382ea6010 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- Makefile.orig	2011-10-23 17:03:36.000000000 +0900
+++ Makefile	2013-10-17 12:59:19.000000000 +0900
@@ -51,7 +51,7 @@
 		$(MTRACE_OBJS) $(MSTAT_OBJS)
 SRCS          = $(OBJS:.o=.c)
 MANS          = $(addsuffix .8,$(EXECS))
-DISTFILES     = README AUTHORS LICENSE ChangeLog
+DISTFILES     = README AUTHORS ChangeLog
 
 LINT          = splint
 LINTFLAGS     = $(MCAST_INCLUDE) $(filter-out -W -Wall -Werror, $(CFLAGS)) -posix-lib -weak -skipposixheaders
@@ -70,13 +70,13 @@
 install: $(EXECS)
 	@install -d $(DESTDIR)$(prefix)/sbin
 	@install -d $(DESTDIR)$(sysconfdir)
-	@install -d $(DESTDIR)$(datadir)
+	@[ -z "${doc}" ] || install -d $(DESTDIR)$(datadir)
 	@install -d $(DESTDIR)$(mandir)
 	@for file in $(EXECS); do \
 		install -m 0755 $$file $(DESTDIR)$(prefix)/sbin/$$file; \
 	done
 	@install -b -m 0644 $(CONFIG) $(DESTDIR)$(sysconfdir)/$(CONFIG)
-	@for file in $(DISTFILES); do \
+	@[ -z "${doc}" ] || for file in $(DISTFILES); do \
 		install -m 0644 $$file $(DESTDIR)$(datadir)/$$file; \
 	done
 	@for file in $(MANS); do \