[stgt] [PATCH] let Makefile handle files in doc/

Tomasz Chmielewski mangoo at wpkg.org
Fri Jan 30 14:09:53 CET 2009


Manual page for tgt-admin refers to targets.conf.example (examples for target configuration,
too long to fit into a manual page).

I think this file should go to /usr/share/doc/tgt along with other files we have in doc/.



Signed-off-by: Tomasz Chmielewski <mangoo at wpkg.org>

diff --git a/usr/Makefile b/usr/Makefile
index 1b05631..5794403 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -2,6 +2,7 @@ VERSION = 0.9.3
 EXTRAVERSION = $(if $(shell git-show-ref 2>/dev/null),-git-$(shell git-show-ref --head --abbrev|head -1|awk '{print $$1}'))
 
 mandir = /usr/share/man
+docdir = /usr/share/doc/tgt
 
 ifneq ($(IBMVIO),)
 CFLAGS += -DIBMVIO -DUSE_KERNEL
@@ -66,6 +67,9 @@ TGTD_OBJS += tgtd.o mgmt.o target.o scsi.o log.o driver.o util.o work.o \
 		bs_null.o bs_sg.o bs.o libcrc32c.o
 MANPAGES = ../doc/manpages/tgtadm.8 ../doc/manpages/tgt-admin.8 \
 		../doc/manpages/tgt-setup-lun.8
+DOCS = ../doc/README.fcoe ../doc/README.ibmvstgt ../doc/README.iscsi ../doc/README.iser \
+	    ../doc/README.lu_configuration ../doc/README.mmc ../doc/targets.conf.example \
+	    ../doc/tmf.txt ../doc/TODO
 
 TGTD_DEP = $(TGTD_OBJS:.o=.d)
 
@@ -96,9 +100,11 @@ install: $(PROGRAMS) $(SCRIPTS) install_doc
 	install -d -m 755 $(DESTDIR)/usr/sbin
 	install -m 755 $(PROGRAMS) $(SCRIPTS) $(DESTDIR)/usr/sbin
 
-install_doc: $(MANPAGES)
+install_doc: $(MANPAGES) $(DOCS)
 	install -d -m 755 $(DESTDIR)$(mandir)/man8
-	install -m 644 $^ $(DESTDIR)$(mandir)/man8
+	install -m 644 $(MANPAGES) $(DESTDIR)$(mandir)/man8
+	install -d -m 755 $(DESTDIR)$(docdir)
+	install -m 644 $(DOCS) $(docdir)
 
 .PHONY: clean
 clean:



-- 
Tomasz Chmielewski
http://wpkg.org

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list