Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/extsrc Top level reach-over directory for extsrc.
details: https://anonhg.NetBSD.org/src/rev/a25c35c3d194
branches: trunk
changeset: 749496:a25c35c3d194
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Tue Dec 01 01:53:46 2009 +0000
description:
Top level reach-over directory for extsrc.
diffstat:
extsrc/Makefile | 7 ++++
extsrc/Makefile.extsrc | 77 ++++++++++++++++++++++++++++++++++++++++++++++++
extsrc/external/Makefile | 5 +++
3 files changed, 89 insertions(+), 0 deletions(-)
diffs (101 lines):
diff -r a13f7fb0f5b2 -r a25c35c3d194 extsrc/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/extsrc/Makefile Tue Dec 01 01:53:46 2009 +0000
@@ -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"
diff -r a13f7fb0f5b2 -r a25c35c3d194 extsrc/Makefile.extsrc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/extsrc/Makefile.extsrc Tue Dec 01 01:53:46 2009 +0000
@@ -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>
diff -r a13f7fb0f5b2 -r a25c35c3d194 extsrc/external/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/extsrc/external/Makefile Tue Dec 01 01:53:46 2009 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/12/01 01:53:46 uebayasi Exp $
+
+#SUBDIR= XXX
+
+.include <bsd.subdir.mk>
Home |
Main Index |
Thread Index |
Old Index