LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2004, 01:15 AM   #1
ananthbv
Member
 
Registered: Nov 2003
Posts: 49

Rep: Reputation: 15
make does not say 'up to date'


hi all,
i have a makefile which in turn runs several other makefiles. 'make' runs fine but does not say 'up to date' when i run the same makefile without making any changes to the relevant files. what could be the reason(s)?
 
Old 09-28-2004, 06:01 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Could you post your Makefile(s) please.
Without it, we can't do anything but guess...

One easy guess would be though:
Have you specified any dependencies like the red part below?
Code:
prog: main.c
<tab>   gcc -c -o prog main.c

Last edited by Hko; 09-28-2004 at 06:03 AM.
 
Old 09-28-2004, 06:59 AM   #3
ananthbv
Member
 
Registered: Nov 2003
Posts: 49

Original Poster
Rep: Reputation: 15
no Hko, there is no
Code:
prog: main.c
and thats a humongous makefile, containing a lot of sub-makefiles, but these are the essential details.
these are the sub-makefiles:
Code:
a.mk aa.mk ... ae.mk
b.mk ...
c.mk  ...
d.mk  ...
e.mk  ...
f.mk  ...
g.mk  ...
h.mk  ...
i.mk  ...
j.mk  ...
.
.
.
z.mk   ...   ze.mk
each of these makefiles contain something like this. pls assume that all the symbols in $(...) have been predefined.

Code:
#  a.mk

COBOL_OBJECTS=\
                   $(SOME_DIR)/cob1.o \
                   $(SOME_DIR)/cob2.o

PASCAL_OBJECTS=\
                   $(ANOTHER_DIR)/pas1.o \
                   $(ANOTHER_DIR)/pas2.o

a: $(COBOL_OBJECTS) $(PASCAL_OBJECTS)
         $(COB) -Z $(COBOL_OBJECTS) $(PASCAL_OBJECTS) -o $(LIB_DIR)/liba.sl

.cbl.o: 
         $(COBOL) $(COBOPTS) -c $< -o $@

.p.o:
         $(PASCAL) $(PASOPTS) ...

clean:
         <rm commands>
thats about the sub-makefiles. the actual 'makefile' is like this
Code:
# final makefile

all: MAKE_SOME
           make -f a.mk  a
           make -f b.mk  b
           make -f c.mk  c
           make -f d.mk  d
           make -f e.mk  e
           .
           .
           .
           make -f z.mk  z

MAKE_SOME:
           make -f aa.mk  aa
           make -f ab.mk  ab
           make -f ac.mk  ac
           make -f ad.mk  ad
           make -f az.mk  ae

clean:
           make -f a.mk  clean
           make -f b.mk  clean
           make -f c.mk  clean
           make -f d.mk  clean
           make -f e.mk  clean
           .
           .
           .
           make -f z.mk  clean

# and so on
is this enough description? thanks for any help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to make a directory with mkdir using the date command. Altheastronut Linux - General 5 06-09-2009 12:14 PM
How to make my old laptop up to date. confusednotebookuser Linux - Laptop and Netbook 2 11-13-2005 04:00 PM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM
How to make sure a Slackware system is up to date? MDesigner Linux - Newbie 5 01-12-2005 06:41 PM
lastlog date does not match system date? jcmj Linux - Networking 6 10-22-2002 12:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration