Module Name:    src
Committed By:   uebayasi
Date:           Tue Dec  1 01:53:46 UTC 2009

Added Files:
        src/extsrc: Makefile Makefile.extsrc
        src/extsrc/external: Makefile

Log Message:
Top level reach-over directory for extsrc.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/extsrc/Makefile src/extsrc/Makefile.extsrc
cvs rdiff -u -r0 -r1.1 src/extsrc/external/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/extsrc/Makefile
diff -u /dev/null src/extsrc/Makefile:1.1
--- /dev/null	Tue Dec  1 01:53:46 2009
+++ src/extsrc/Makefile	Tue Dec  1 01:53:46 2009
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile,v 1.1 2009/12/01 01:53:46 uebayasi Exp $
+
+SUBDIR=	external
+SUBDIR_TOOLS=
+SUBDIR_LIB=
+
+.include "Makefile.extsrc"
Index: src/extsrc/Makefile.extsrc
diff -u /dev/null src/extsrc/Makefile.extsrc:1.1
--- /dev/null	Tue Dec  1 01:53:46 2009
+++ src/extsrc/Makefile.extsrc	Tue Dec  1 01:53:46 2009
@@ -0,0 +1,77 @@
+#	$NetBSD: Makefile.extsrc,v 1.1 2009/12/01 01:53:46 uebayasi Exp $
+
+.include <bsd.own.mk>
+
+.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
+BUILDTARGETS+=  cleandir
+.endif
+.if ${MKOBJDIRS} != "no"
+BUILDTARGETS+=  obj
+.endif
+BUILDTARGETS+=	do-tools
+.if !defined(NOINCLUDES)
+BUILDTARGETS+=	includes
+.endif
+BUILDTARGETS+=	do-lib
+BUILDTARGETS+=	do-build
+
+.ORDER: ${BUILDTARGETS}
+
+START_TIME!=	date
+
+build: check_EXTSRCSRCDIR
+	@echo "extsrc build started at: ${START_TIME}"
+.for tgt in ${BUILDTARGETS}
+	${MAKEDIRTARGET} . ${tgt}
+.endfor
+	@echo   "extsrc build started at:  ${START_TIME}"
+	@printf "extsrc build finished at: " && date
+
+do-build:
+.for targ in dependall install
+	${MAKEDIRTARGET} . ${targ}
+.endfor
+
+do-tools:
+.for dir in	${SUBDIR_TOOLS}
+	${MAKEDIRTARGET} . do-${dir:S/\//-/g}
+.endfor
+
+do-lib:
+.for dir in	${SUBDIR_LIB}
+	${MAKEDIRTARGET} . do-${dir:S/\//-/g}
+.endfor
+
+.for dir in	${SUBDIR_TOOLS} ${SUBDIR_LIB}
+do-${dir:S/\//-/g}:
+.  for targ in dependall install
+	${MAKEDIRTARGET} ${dir} ${targ}
+.  endfor
+.endfor
+
+afterinstall: .PHONY
+.if ${MKMAN} != "no"
+	${MAKEDIRTARGET} ${NETBSDSRCDIR}/share/man makedb \
+	    WHATISDBDIR=${EXTSRCMANDIR}
+.endif
+
+# XXX how to decide this?
+
+DISTRIBTARGETS=	# XXX
+
+distribution: check_EXTSRCSRCDIR
+.for tgt in ${DISTRIBTARGETS}
+	${MAKEDIRTARGET} ${tgt} configinstall
+.endfor
+
+
+check_EXTSRCSRCDIR: .PHONY .NOTMAIN
+.if !defined(EXTSRCSRCDIR)
+	@echo
+	@echo "ERROR: setenv EXTSRCSRCDIR before doing that!"
+	@false
+.else
+	@true
+.endif
+
+.include <bsd.subdir.mk>

Index: src/extsrc/external/Makefile
diff -u /dev/null src/extsrc/external/Makefile:1.1
--- /dev/null	Tue Dec  1 01:53:46 2009
+++ src/extsrc/external/Makefile	Tue Dec  1 01:53:46 2009
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2009/12/01 01:53:46 uebayasi Exp $
+
+#SUBDIR=	XXX
+
+.include <bsd.subdir.mk>

Reply via email to