[Makefile] nothing to be done for 'all'


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Programming [Makefile] nothing to be done for 'all'
# 1  
[Makefile] nothing to be done for 'all'

hello,
I have a firts makefile who call others makefile. for this i use:
Code:
$ make -f linux.mak

and output his:
Code:
$ make -f linux.mak all
make -C DerelictAL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make -C DerelictFMOD all PLATFORM=linux	
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make -C DerelictFT all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make -C DerelictGL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make -C DerelictIL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make -C DerelictODE all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make -C DerelictOgg all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make -C DerelictPA all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make -C DerelictSDL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make -C DerelictSFML all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make -C DerelictUtil all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'
[builder@jonathan derelict2-20100407]$ make -f linux.mak all
make -C DerelictAL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make -C DerelictFMOD all PLATFORM=linux	
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFMOD'
make -C DerelictFT all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictFT'
make -C DerelictGL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictGL'
make -C DerelictIL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictIL'
make -C DerelictODE all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictODE'
make -C DerelictOgg all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictOgg'
make -C DerelictPA all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictPA'
make -C DerelictSDL all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSDL'
make -C DerelictSFML all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictSFML'
make -C DerelictUtil all PLATFORM=linux
make[1]: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictUtil'

linux.mak file:
Code:
include inc/linux_inc.mak

all : DerelictAL_ALL DerelictFMODEX_ALL DerelictFT_ALL DerelictGL_ALL DerelictIL_ALL DerelictODE_ALL DerelictOgg_ALL DerelictPA_ALL DerelictSDL_ALL DerelictSFML_ALL DerelictUtil_ALL

# Targets for all libs in each package
DerelictAL_ALL :
	$(DMAKE) -C DerelictAL all PLATFORM=linux
	
DerelictFMODEX_ALL :
	$(DMAKE) -C DerelictFMOD all PLATFORM=linux	

DerelictFT_ALL :
	$(DMAKE) -C DerelictFT all PLATFORM=linux
		
DerelictGL_ALL :
	$(DMAKE) -C DerelictGL all PLATFORM=linux
	
DerelictIL_ALL :
	$(DMAKE) -C DerelictIL all PLATFORM=linux
	
DerelictODE_ALL :
	$(DMAKE) -C DerelictODE all PLATFORM=linux
	
DerelictOgg_ALL :
	$(DMAKE) -C DerelictOgg all PLATFORM=linux
	
DerelictPA_ALL:
	$(DMAKE) -C DerelictPA all PLATFORM=linux

DerelictSDL_ALL :
	$(DMAKE) -C DerelictSDL all PLATFORM=linux

DerelictSFML_ALL :
	$(DMAKE) -C DerelictSFML all PLATFORM=linux
	
DerelictUtil_ALL :
	$(DMAKE) -C DerelictUtil all PLATFORM=linux
	
# There's only one DerelictAL target
DerelictAL : DerelictAL_ALL

# There's only one DerelictFMODEX target
DerelictFMODEX : DerelictFMODEX_ALL

# There's only one DerelictFT target
DerelictFT : DerelictFT_ALL
	
# Individual DerelictGL targets
DerelictGL :
	$(DMAKE) -C DerelictGL DerelictGL PLATFORM=linux
	
DerelictGLU :
	$(DMAKE) -C DerelictGL DerelictGLU PLATFORM=linux
	
# Individual DerelictIL targets
DerelictIL :
	$(DMAKE) -C DerelictIL DerelictIL PLATFORM=linux
	
DerelictILU :
	$(DMAKE) -C DerelictIL DerelictILU PLATFORM=linux
	
DerelictILUT :
	$(DMAKE) -C DerelictIL DerelictILUT PLATFORM=linux
	
# There's only one target for DerelictODE
DerelictODE : DerelictODE_ALL
	
# Individual DerelictOgg targets
DerelictOgg :
	$(DMAKE) -C DerelictOgg DerelictOgg PLATFORM=linux
	
# There's only one target for DerelictPA
DerelictPA : DerelictPA_ALL	
	
DerelictVorbis :
	$(DMAKE) -C DerelictOgg DerelictVorbis PLATFORM=linux
	
DerelictVorbisEnc :
	$(DMAKE) -C DerelictOgg DerelictVorbisEnc PLATFORM=linux
	
DerelictVorbisFile :
	$(DMAKE) -C DerelictOgg DerelictVorbisFile PLATFORM=linux	
	
# Individual DerelictSDL targets
DerelictSDL :
	$(DMAKE) -C DerelictSDL DerelictSDL PLATFORM=linux
	
DerelictSDLImage :
	$(DMAKE) -C DerelictSDL DerelictSDLImage PLATFORM=linux

DerelictSDLMixer :
	$(DMAKE) -C DerelictSDL DerelictSDLMixer PLATFORM=linux

DerelictSDLNet :
	$(DMAKE) -C DerelictSDL DerelictSDLNet PLATFORM=linux
	
DerelictSDLttf :
	$(DMAKE) -C DerelictSDL DerelictSDLttf PLATFORM=linux
	
# Individual DerelictSFML targets
DerelictSFMLWindow :
	$(DMAKE) -C DerelictSFML DerelictSFMLWindow PLATFORM=linux
	
DerelictSFMLSystem :
	$(DMAKE) -C DerelictSFML DerelictSFMLSystem PLATFORM=linux
	
DerelictSFMLGraphics :
	$(DMAKE) -C DerelictSFML DerelictSFMLGraphics PLATFORM=linux
	
DerelictSFMLAudio :
	$(DMAKE) -C DerelictSFML DerelictSFMLAudio PLATFORM=linux
	
DerelictSFMLNetwork :
	$(DMAKE) -C DerelictSFML DerelictSFMLNetwork PLATFORM=linux
	
# There's only one DerelictUtil target
DerelictUtil : DerelictUtil_All
	
cleanall : cleanlib cleandi

clean : cleanlib

cleanlib:
	cd DerelictUtil && $(RM) $(LIB_DEST)/*.a
	
cleandi:
	cd DerelictUtil  && $(RMR) $(IMPORT_DEST)/derelict

DerelictAL makefile:
Code:
include ../inc/$(PLATFORM)_inc.mak

all : DerelictAL

SOURCES= $(shell find . -name '*.d' )
OBJECTS= $(shell echo $(SOURCES) | sed -e 's/\.d/\.o/g')

DerelictAL : $(LIBNAME)

$(LIBNAME) : IMPORTS=-Iderelict
$(LIBNAME) : $(OBJECTS)
	$(make-lib)

%.o : %.d
	$(DC) $(DFLAGS) $(IMPORTS) -c $< $(output)
	
install: all
	install -d $(IMPORT_DEST)/openal
	(cd src;   echo $(SOURCES)   | sed -e s,src/,,g   | xargs tar c) | (cd $(SOURCES); tar xv)
	install -d $(LIB_DEST)
	install -m 644 $(LIBNAME)   $(LIB_DEST)
	
uninstall:
	$(foreach dir,$(shell ls derelict)  , rm -rf $($(IMPORT_DEST)/$(dir))
	
clean:
	-rm -f $(LIBNAME) $(OBJECTS)

Thanks for any help
# 2  
HI.

I didn't see a question in there. Only a statement.

Assuming it's related to having "nothing to do", try a make clean first. Having "nothing to do" generally should mean that it's "done already", and you really shouldn't have to do it again (if the source changes, then it will be complied - as is in the nature of make, to only do things which need to be done).
# 3  
I found the problem
replace:
Code:
DerelictAL : $(LIBNAME)

$(LIBNAME) : IMPORTS=-Iderelict
$(LIBNAME) : $(OBJECTS)
	$(make-lib)

by:
Code:
DerelictAL : $(LIB_PRE)DerelictAL.$(LIB_EXT)

$(LIB_PRE)DerelictAL.$(LIB_EXT) : IMPORTS=-Iderelict
$(LIB_PRE)DerelictAL.$(LIB_EXT) : $(OBJECTS)

Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #501
Difficulty: Easy
If a piece of code adds two numbers together and stores the result, there should be a comment that explains the process in the source code.
True or False?

10 More Discussions You Might Find Interesting

1. Programming

Makefile for g++

Hi All, We have moved our OS from Sun Solaris to Linux and also some of the compilers. Our old makefile used to be as below: CC=cc FLAGS=-G -KPIC -DLG_SOLARIS_OS DEFINES=-DSunOS SYSLIBS=-lc .SUFFIXES : .c .c.o : ;$(CC) -c $(FLAGS) $(DEFINES) $*.c -o $*.o ... (3 Replies)
Discussion started by: shash
3 Replies

2. UNIX for Dummies Questions & Answers

MakeFile

Hey everybody, This may be stup*d question for you, but i am new in unix and i wonder how can i make the rules for translating and linking my .c "primjer1.c", "primjer2.c" and "primjer3.c" in makefile. Thank you. (7 Replies)
Discussion started by: jskako
7 Replies

3. Shell Programming and Scripting

Makefile

Dear all, I have a quite simple question about how to manipulate "makefile.am". I intend to: 1. "CFLAGS" and "CXXFLAGS" have no value at all. I know that these values get "-g -O2" by default. On the other hand, when I try to set them as "CFLAGS = " in "makefile.am", I get warning messages... (4 Replies)
Discussion started by: Dandan
4 Replies

4. Shell Programming and Scripting

Makefile help

I am creating a make file, but i keep getting an error when i try to run it with the following code: make foo . make $(EXE) i get EXE: command not found make: `foo' is up to date. make: Nothing to be done for `.'. make: *** No rule to make target `make'. Stop. Here is my... (6 Replies)
Discussion started by: football12345
6 Replies

5. Homework & Coursework Questions

Makefile Help

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have been trying to make the program swap but i have been getting errors with the makefile such as driver.o:... (1 Reply)
Discussion started by: mgyeah
1 Replies

6. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies

7. UNIX for Advanced & Expert Users

Makefile executing another Makefile first?

I have 2 libraries in 2 different directories that I build with Makefiles. library B depends on library A. If I modify a .cpp file in library A and run lib B's Makefile can I have B's makefile to automatically rebuild library A? I am now rebuilding A, followed by B... but I'd like B to... (0 Replies)
Discussion started by: wwuster
0 Replies

8. UNIX for Advanced & Expert Users

Makefile problem - How to run module load in a Makefile

Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error: make: module: command not found Why is this? Is there any way to run this command in a Makefile? NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies

9. High Performance Computing

help with makefile

I am new to creating makefiles. I have several fortran programs in a folder called as "test" and also have several subroutines in another folder (which is inside this test folder) called as libry My makefile is in the folder "test" I want to create a makefile which can access the files in... (2 Replies)
Discussion started by: explorer
2 Replies

10. Programming

about the makefile

can anyone well explain how to create a makefile? especially those commands in the makefile? BTW, what is CFLAG? (2 Replies)
Discussion started by: ligerdave
2 Replies

Featured Tech Videos