Index: doc/Makefile
===================================================================
RCS file: doc/Makefile
diff -N doc/Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ doc/Makefile	6 Jul 2009 22:31:41 -0000
@@ -0,0 +1,32 @@
+#
+#    Doc Makefile.
+#
+#    Copyright (C) 2009, Cisco Systems Inc.
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Garrett Cooper, July 2009
+#
+# Copyright (c) 2009 by Cisco Systems, Inc.
+# All rights reserved
+#
+
+srcdir			?= ..
+
+include $(srcdir)/include/mk/master_include.mk
+
+RECURSIVE_TARGETS	:= clean install
+
+$(eval $(generic_trunk_target))
Index: doc/man1/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/doc/man1/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- doc/man1/Makefile	23 Jun 2009 14:18:16 -0000	1.5
+++ doc/man1/Makefile	6 Jul 2009 22:31:41 -0000
@@ -1,12 +1,30 @@
+#
+#    man1 Makefile.
+# 
+#    Copyright (C) 2009, Cisco Systems Inc.
+# 
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+# 
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+# 
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# 
+# Garrett Cooper, July 2009
+#
+# Copyright (c) 2009 by Cisco Systems, Inc.
+# All rights reserved
+#
 
+MANPREFIX		:= 1
 
-PREFIX=/usr
-MANPAGES=ltp-bump.1 doio.1 iogen.1 ltp-pan.1
-
-all:
-
-install: $(MANPAGES)
-	@set -e; for i in $(MANPAGES); do \
-		install -D -m 644 $$i $(DESTDIR)/$(PREFIX)/share/man/man1/$$i; \
-	done
+srcdir			?= ../..
 
+include $(srcdir)/include/mk/man.mk
Index: doc/man3/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/doc/man3/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- doc/man3/Makefile	23 Jun 2009 14:18:16 -0000	1.4
+++ doc/man3/Makefile	6 Jul 2009 22:31:41 -0000
@@ -1,15 +1,30 @@
+#
+#    man3 Makefile.
+# 
+#    Copyright (C) 2009, Cisco Systems Inc.
+# 
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+# 
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+# 
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# 
+# Garrett Cooper, July 2009
+#
+# Copyright (c) 2009 by Cisco Systems, Inc.
+# All rights reserved
+#
 
+MANPREFIX		:= 3
 
-PREFIX=/usr
-MANPAGES=forker.3 get_attrib.3 parse_open_flags.3 parse_opts.3 \
-	parse_ranges.3 pattern.3 random_range.3 random_range_seed.3 \
-	rmobj.3 string_to_tokens.3 str_to_bytes.3 tst_res.3 \
-	tst_set_error.3 tst_sig.3 tst_tmpdir.3 usctest.3 write_log.3
-
-all:
-
-install: $(MANPAGES)
-	@set -e; for i in $(MANPAGES); do \
-		install -D -m 644 $$i $(DESTDIR)/$(PREFIX)/share/man/man3/$$i; \
-	done
+srcdir			?= ../..
 
+include $(srcdir)/include/mk/man.mk
Index: include/mk/man.mk
===================================================================
RCS file: include/mk/man.mk
diff -N include/mk/man.mk
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ include/mk/man.mk	6 Jul 2009 22:31:41 -0000
@@ -0,0 +1,42 @@
+#
+#    Manpage include Makefile.
+#
+#    Copyright (C) 2009, Cisco Systems Inc.
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Garrett Cooper, July 2009
+#
+# Copyright (c) 2009 by Cisco Systems, Inc.
+# All rights reserved
+#
+
+ifeq ($(strip $(MANPREFIX)),)
+$(error $$(MANPREFIX) not defined)
+endif
+
+include $(srcdir)/include/mk/config.mk
+
+MANPAGES		?= $(wildcard *.$(MANPREFIX))
+
+clean:
+	@set -e; for i in $(MANPAGES); do \
+	    $(RM) -Rf $(DESTDIR)/$(mandir)/man$(MANPREFIX)/$$i; \
+	done
+
+install: $(MANPAGES)
+	@set -e; for i in $^; do \
+	    install -D -m 644 $$i $(DESTDIR)/$(mandir)/man$(MANPREFIX)/$$i; \
+	done
