RE: [cciug] "clearmake -C gnu" doesn't take an include file as a target,

From: Bruce Nguyen (bnguyen@catapulse.com)
Date: Tue Sep 19 2000 - 18:10:17 EDT


My experience was with my previous company so I am not set up to do much
testing. What I mentioned below should work for gnu make. When we switch
to clearmake -C gnu, we no longer need to generate an include file for
dependencies because clearmake will resolve dependencies even if you do not
explicitly specify them in the makefile. Also, I am assuming you are using
clearmake under a dynamic view. Otherwise, why would you use clearmake in
the first place.
 
Here is an example where clearmake will resolve dependency without
explicitly specifying it:
 
install: main.exe
main.exe: main.c
# main.c: timestamp.h
timestamp.h:
    echo 'char *timestamp = "'`date`'";' > $<
 
Hope this helps...
Bruce Nguyen.

-----Original Message-----
From: Wenbo Zhu [mailto:wenboz@nortelnetworks.com
Sent: Tuesday, September 19, 2000 2:46 PM
To: 'Bruce Nguyen'
Subject: RE: [cciug] "clearmake -C gnu" doesn't take an include file as a
target,

Include will be interprated first when clearmake read a Makefile.

Are you trying this using clearmake?

Sure that GNU make works when it's her new feature.

Thanks/Wenbo

        -----Original Message-----
From: Bruce Nguyen [SMTP:bnguyen@catapulse.com
Sent: Tuesday, September 19, 2000 5:16 PM
To: Zhu, Wenbo [WDLN2:2X38:EXCH]
Subject: RE: [cciug] "clearmake -C gnu" doesn't take an include file
as a target,

        Try moving the include to be after main.def: target. Perhaps after
any other previous dependencies. We had something like that working using
gnu make.

          
-Bruce

 -----Original Message-----
From: Wenbo Zhu [ mailto:wenboz@nortelnetworks.com
<mailto:wenboz@nortelnetworks.com> ]
Sent: Monday, September 18, 2000 2:56 PM
To: cciug@rational.com
Cc: Wenbo Zhu; Peter Arseneau; Stephen Carruthers
Subject: [cciug] "clearmake -C gnu" doesn't take an include file as a
target,

        As in "makefile_gnu", not-supported-functions :
"automatic re-making of any Makefiles that are declared as targets (you must
explicitly rebuild them) "

        Makefile:
--------------------------------
include main.def
main.def:
        build_main.def
--------------------------------

        clearmake -C gnu
simply stops when it fails to find "main.def".

        Is there any nice work-around, please?
Wenbo

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:41 EDT