summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.in
blob: 2c42d7e5a832de19b2f79fe1a20ee9be61eda08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
mandocs-@CONFIG_MAN@	+= doc/nftables.8
pdfdocs-@CONFIG_PDF@	+= doc/nftables.pdf

all:		$(mandocs-y) $(pdfdocs-y)
clean:
		@echo -e "  CLEAN\t\tdoc"
		$(RM) $(mandocs-y) $(pdfdocs-y)

install:	$(mandocs-y) $(pdfdocs-y)
		@echo -e "  INSTALL\tdoc"
		if test -n "$(mandocs-y)"; then \
			$(MKDIR_P) $(DESTDIR)/${mandir}/man8 ;\
			$(INSTALL) -m 755 -o root -g root $(mandocs-y) \
					$(DESTDIR)/${mandir}/man8/ ;\
		fi
		if test -n "$(pdfdocs-y)"; then \
			$(MKDIR_P) $(DESTDIR)/${pdfdir} ;\
			$(INSTALL) -m 755 -o root -g root $(pdfdocs-y) \
					$(DESTDIR)/${pdfdir}/ ;\
		fi