Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Arrgghhh!!

I can't make this work at all.

I tried to hack the libh/Makefile in the following way:

Index: Makefile
===================================================================
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 $
 
-SUBDIR= compile
+SUBDIR=        lib bin
 
-.include <bsd.subdir.mk>
+SETENV?=       /usr/bin/env
+MAKEENV=       MAKEOBJDIR=${.CURDIR}/compile/${UITYPE}
+
+# fullbuild target makes the 4 compile/ directories
+fullbuild:
+       @echo "Building all Hui types (text+graphics, text, graphics and none)"
+       @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 
+       @echo "--------------------------------------------------------------"
+       @echo ">> Building without Qt (graphics)"
+       @echo "--------------------------------------------------------------"
+       ${MAKE} all NOQT=yes
+       @echo "--------------------------------------------------------------"
+       @echo ">> Building without TVision (text)"
+       @echo "--------------------------------------------------------------"
+       ${MAKE} all NOTVISION=yes
+       @echo "--------------------------------------------------------------"
+       @echo ">> Building libh without TVision and Qt (none)"
+       @echo "--------------------------------------------------------------"
+       ${MAKE} all NOQT=yes NOTVISION=yes
+       @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éc 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=/u/anarcat/libh/compile/text+graphics make all
/usr/bin/env  make -f ../Makefile.inc1 BSUBDIR=lib/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/text+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=/u/anarcat/libh/compile/text+graphics make all
===> hui
===> 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.

[-- Attachment #2 --]
-----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-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011212163933.GB65834>