Date: Wed, 12 Dec 2001 11:39:33 -0500 From: The Anarcat <anarcat@anarcat.dyndns.org> To: Libh <freebsd-libh@freebsd.org> Subject: Damn Make! (was: Re: MAKEOBJDIR) Message-ID: <20011212163933.GB65834@shall.anarcat.dyndns.org>
next in thread | raw e-mail | index | archive | help
--ftEhullJWpWg/VHq
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Arrgghhh!!
I can't make this work at all.
I tried to hack the libh/Makefile in the following way:
Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/libh/cvs/libh/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 2001/09/20 21:21:55 1.5
+++ Makefile 2001/12/12 16:28:33
@@ -1,5 +1,37 @@
# $FreeBSD: libh/Makefile,v 1.5 2001/09/20 21:21:55 alex Exp $
=20
-SUBDIR=3D compile
+SUBDIR=3D lib bin
=20
-.include <bsd.subdir.mk>
+SETENV?=3D /usr/bin/env
+MAKEENV=3D MAKEOBJDIR=3D${.CURDIR}/compile/${UITYPE}
+
+# fullbuild target makes the 4 compile/ directories
+fullbuild:
+ @echo "Building all Hui types (text+graphics, text, graphics and no=
ne)"
+ @echo "To avoid this, use the \"all\" target which defaults to a \"=
text+ graphics\" build"
+ @echo "Build started on "`date`
+
+ @echo "------------------------------------------------------------=
--"
+ @echo ">> Building for text+graphics"
+ @echo "------------------------------------------------------------=
--"
+ ${MAKE} all=20
+ @echo "------------------------------------------------------------=
--"
+ @echo ">> Building without Qt (graphics)"
+ @echo "------------------------------------------------------------=
--"
+ ${MAKE} all NOQT=3Dyes
+ @echo "------------------------------------------------------------=
--"
+ @echo ">> Building without TVision (text)"
+ @echo "------------------------------------------------------------=
--"
+ ${MAKE} all NOTVISION=3Dyes
+ @echo "------------------------------------------------------------=
--"
+ @echo ">> Building libh without TVision and Qt (none)"
+ @echo "------------------------------------------------------------=
--"
+ ${MAKE} all NOQT=3Dyes NOTVISION=3Dyes
+ @echo ">> Build finished on " `date`
+
+all build install clean:
+.for _SUBDIR in ${SUBDIR}
+ cd ${_SUBDIR} && ${SETENV} ${MAKEENV} ${MAKE} $@
+.endfor
+
+.include "Makefile.uitype"
But now, this doesn't work at all!!
anarcat@shall[~/libh]% make
Building all Hui types (text+graphics, text, graphics and none)
To avoid this, use the "all" target which defaults to a "text+graphics"
build
Build started on Mer 12 d=E9c 2001 11:32:11 EST
--------------------------------------------------------------
>> Building for text+graphics
--------------------------------------------------------------
make all
make: don't know how to make all. Stop
*** Error code 2
Stop in /u/anarcat/libh.
Ridiculous!!!
Make all *works*. But not as expected:
anarcat@shall[~/libh]% make all
cd lib && /usr/bin/env MAKEOBJDIR=3D/u/anarcat/libh/compile/text+graphics m=
ake all
/usr/bin/env make -f ../Makefile.inc1 BSUBDIR=3Dlib/common all
Warning: Object directory not changed from original /u/anarcat/libh/compile=
/text+graphics
c++ -g -fpic -DPIC -I/usr/local/include/tcl8.3 -I/u/anarcat/libh/compile/t=
ext+graphics/../../include -c /u/anarcat/libh/compile/text+graphics/../../=
lib/common/Pointer.cc -o Pointer.o
In the same idea, make all in lib does not do this at all either!!!
anarcat@shall[~/libh]% cd lib && /usr/bin/env MAKEOBJDIR=3D/u/anarcat/libh/=
compile/text+graphics make all
=3D=3D=3D> hui
=3D=3D=3D> disk
I feel there are 2 parallel dimensions here: one where everything makes
sense and follows logic, and the make(1) one. :)
What am I missing?
BTW, I have been able to make this work properly before, I swear. It's
just by abusive editing that I scrapped something I shouldn't have had
scrapped.
This is simply mad.
A.
--ftEhullJWpWg/VHq
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjwXiEQACgkQttcWHAnWiGfhsACfQ+DvajtQkuCh6t8/aimEl+JL
jdcAnRzY45Rhuk7MfIi05wSYym2Q6WAv
=gHnQ
-----END PGP SIGNATURE-----
--ftEhullJWpWg/VHq--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011212163933.GB65834>
