make scripts are bizzare under Debian.
Hi.
I'm trying to run a make script on a Debian machine, and it is behaving in the *most* weird way.
We have a tree of source code with makefiles in all the appropriate places, and it works fine on our RedHat systems. We are now trying to get it to work on a Debian machine, where it starts to behave strangely. here's how:
If I go to the top of the source tree, and do:
make clean
everything behaves itself fine.
If, however, I run the make script like this:
./debian/rules.pmf clean
then it errors in all the directories, saying "no rule to make target `w'"
We initialy started with a full debian template make script, but have ended up removing almost everything in it and we now have this as the entire rules.pmf script:
<snip>
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
DH_VERBOSE=1
clean:
$(MAKE) "clean"
</snip>
the exact output we get is this:
<snip>
po:~/viss-1.5.2# debian/rules.pmf clean
/usr/bin/make "clean"
make[1]: Entering directory /root/viss-1.5.2' make[2]: Entering directory /root/viss-1.5.2/shared' make[2]: *** No rule to make target w'. Stop. make[2]: Leaving directory /root/viss-1.5.2/shared' make[2]: Entering directory /root/viss-1.5.2/utils' make[2]: *** No rule to make target w'. Stop. make[2]: Leaving directory `/root/viss-1.5.2/utils'
...repeated for each directory until...
make[1]: *** [clean] Error 2
make[1]: Leaving directory `/root/viss-1.5.2'
make: *** [clean] Error 2
po:~/viss-1.5.2#
</snip>
As you can see, it's definitley trying to run "make clean" but somewhere "clean" gets turnes into "w."
Anybody got any idea at all why it's doing this?
tks.
Paul.
Signature · 5 lines
Paul Furness Systems Manager Steepness is an illusion caused by flat things leaning over.
Forget it - user error (I can't read make files properly... ) It works now...
Paul.
Quoted 74 lines · Paul Furness
Hi.
I'm trying to run a make script on a Debian machine, and it is behaving in the *most* weird way.
We have a tree of source code with makefiles in all the appropriate places, and it works fine on our RedHat systems. We are now trying to get it to work on a Debian machine, where it starts to behave strangely. here's how:
If I go to the top of the source tree, and do:
make clean
everything behaves itself fine.
If, however, I run the make script like this:
./debian/rules.pmf clean
then it errors in all the directories, saying "no rule to make target `w'"
We initialy started with a full debian template make script, but have ended up removing almost everything in it and we now have this as the entire rules.pmf script:
<snip>
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
DH_VERBOSE=1clean:
$(MAKE) "clean"</snip>
the exact output we get is this:
<snip>
po:~/viss-1.5.2# debian/rules.pmf clean
/usr/bin/make"clean"
make[1]: Entering directory/root/viss-1.5.2' make[2]: Entering directory/root/viss-1.5.2/shared' make[2]: *** No rule to make targetw'. Stop. make[2]: Leaving directory/root/viss-1.5.2/shared' make[2]: Entering directory/root/viss-1.5.2/utils' make[2]: *** No rule to make targetw'. Stop. make[2]: Leaving directory `/root/viss-1.5.2/utils'...repeated for each directory until...
make[1]: *** [clean] Error 2
make[1]: Leaving directory `/root/viss-1.5.2'
make: *** [clean] Error 2po:~/viss-1.5.2#
</snip>
As you can see, it's definitley trying to run "make clean" but somewhere "clean" gets turnes into "w."
Anybody got any idea at all why it's doing this?
tks.
Paul.
Signature · 5 lines
Paul Furness Systems Manager Steepness is an illusion caused by flat things leaning over.