Makefile.in:12: *** commands commence before first target. Stop - makefile

When I try to run "make clean" it gives me make: ** No rule to make target clean'. Stop.
So I do make -f Makefile.in clean
and it tells me Makefile.in:12: *** commands commence before first target. Stop.
I went into the Makefile.in and removed the tab on line 12 and retried
make -f Makefile.in clean
but then it gives me Makefile.in:12: *** missing separator. Stop.
Does anyone know what is going on here? I would really appreciate some help.
This was too long for a comment:
checking for Tcl library... not found checking for Tcl header... found /usr/local/include/tcl.h checking whether the Tcl system has changed... yes configure: error:
Tcl cannot be found on this system.
Eggdrop requires Tcl and the Tcl development files to compile. If you already have Tcl installed on this system, make sure you also have the development files (common package names include 'tcl-dev' and 'tcl-devel'). If I just wasn't looking in the right place for it, re-run ./configure using the --with-tcllib='/path/to/libtcl.so' and --with-tclinc='/path/to/tcl.h' options.
See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section for more information.
I am following this guide to get tcl installed correctly. http://botlending.com/docs/eggdrop/compile/19#19

Makefile.in is not a makefile. It's input to for the configure script, which will convert it into a makefile.
Please read the INSTALL or README file that came with the software for instructions, but typically you need to first run configure:
./configure
Then you can run make and/or make install:
make

Related

Makefile error while making clean check and install libneo4j-client library

Update: It was my fault, since I do not have the library libcypher-parser installed I should have run ./configure --disable-tools. It works perfectly now :-)
It may be a silly issue, but I have a problem while completing the installation of the C library neo4j-client.
Since I have ArchLinux on my laptop I downloaded the whole repository from https://github.com/cleishm/libneo4j-client and done the following operations:
$ ./autogen.sh
$ ./configure
that completed without any error, leading to the generation of the file Makefile.in
Then I tried
$ make clean check
$ sudo make install
but the results are:
$ make: *** No rule to make target 'clean'. Stop.
$ make: *** No rule to make target 'install'. Stop.
I don't know why both targets are missing from the Makefile, but I'm stuck on this issue.
I tried to look inside Makefile.in, but there are so many targets that I don't know how to recognize the ones I need...
Please help me :-(
Thank you in advance for your time :-)

make: No rule to make target in Kitkat

I am working in Android source code with Kitkat version, and I encounter a weird problem when I executing make command, the error message are listed below.
make: No rule to make target `out/target/product/msm8909_512/obj/STATIC_LIBRARIES/revlib_intermediates/export_includes',
needed by `out/target/product/msm8909_512/obj/STATIC_LIBRARIES/third_party_harfbuzz_ng_harfbuzz_ng_gyp_intermediates/import_includes'.
Stop.make: Waiting for unfinished jobs....
I can't find a proper answer so far, do I need to install any additional libraries ?
Env: ubuntu 12.04 && java version 1.6.0_45
Please do me a favor.
No rule to make target xxx, needed by yyy.
This means that make decided it needed to build a target, but then couldn't find any instructions in the makefile on how to do that, either explicit or implicit (including in the default rules database). If you want that file to be built, you will need to add a rule to your makefile describing how that target can be built. Other possible sources of this problem are typos in the makefile (if that filename is wrong) or a corrupted source tree (if that file is not supposed to be built, but rather only a prerequisite).
reference

Makefile : What does #VAR# do?

I'm trying to build mod_wsgi from sources.
But when I'm trying to use "make", I get the following issue :
/bin/sh: APXS#: command not found
Makefile.in:31: recipe for target 'src/server/mod_wsgi.la' failed
make: *** [src/server/mod_wsgi.la] Error 127
I checked the Makefile.in file and I line 31 is this one :
$(APXS) -c $(CPPFLAGS) $(CFLAGS) $(SRCFILES) $(LDFLAGS) $(LDLIBS)
And at the line 15 :
APXS = #APXS#
I checked and apxs is installed.
What is #APXS# supposed to do? Giving the path to apxs? (like which apxs?) Use an environment variable?
Why doesn't it work here? I'm building a docker container, could it be the problem?
Thank you for your help!
The #VAR# notation is an autoconf idiosyncrasy, together with the .in suffix in your file Makefile.in, it leads me to think that you did not ./configure your package.
What does it mean to configure my package?
The autoconf software is a tool to write ./configure scripts, meant to detect the characteristics of the system they are running on: What is the path where this program is stored? Where are these C headers? These are questions typically answered by the ./configure script. When it has gathered its answers, it exports the answers by processing a list of files – usually ending with .in like your Makefile.in – and replaces the #VAR# placeholders by the values it guessed.
How do I configure my package?
I do not know the details of your software package, but given the information you provided, you should try to run the ./configure script. Use ./configure --help to review its options. If such a script is not available, try to generate it by using the autoconf command in the toplevel directory of your package.

make: f77: No such file or directory

Whilst attempting to make/compile the grafic package, I'm seeing this error after calling the make command within the grafic directory:
f77 -O2 -c grafic1.f
make: f77: No such file or directory
make: *** [grafic1.o] Error 1
I have XCode and all associated command line tools installed, what could be causing this error?
This error is make telling you that you have no binary in your path called f77. There are two things you need to look at the fix this:
Do you have a Fortran compiler installed? MacOS X/Xcode does not come pre-installed with one by default. The easiest options to install one are via third-party tools like macports or homebrew where you can install gfortran which may be a standalone package or may be part of the gcc package.
Once you have a compiler installed, your makefile needs to know about it. Without seeing the makefile this is only an assumption, but if autotools are not used the fortran compiler is usually hardcoded in a variable called FC, e.g. you might see a line
FC=f77
and you would change this to
FC=gfortran
assuming gfortran is in your path.
Once you have a Fortran compiler installed and the makefile knows about it, you should be able to execute make successfully.

No rule to make target error halfway down the make

On a Leopard Mac mini (PowerPC) I'm trying to compile Apple-GCC-3.3 which I got from https://opensource.apple.com/tarballs/gcc_os/gcc_os-1819.tar.gz
./configure gets completed w.o. any error but make gives the following errors:
When input only "make" it says
make: *** No rule to make target `all', needed by `default'. Stop.
When input make -f Makefile, the make starts fine but somewhere halfway down the process it stops with:
gcc tclAppInit.o -L/Users/macmini/Downloads/gcc_os-1819/tcl/unix -ltcl8.0 -lc \-o tclsh
make[1]: *** No rule to make target `all'. Stop.
make: *** [all-expect] Error 2
For this type of error, it's said that the tar might be dropping long filenames during the untar operation but I tried with different versions of tar such as 1.14, 1.27 and the error is the same.
What should I do? Thanks.
!(http://i.hizliresim.com/Kl9rRJ.png)
(Just in case you may wonder why I want to compile GCC-3.3, it's because it's needed to compile GIMP on PowerPC Macs)
Problem solved. It turned really hard to compile GCC-3.3 from source, so I made it easy and installed it from XCode 3.1 DVD, under the Packages directory where GCC-3.3.pkg was present.
Now the GIMP can be compiled.
Summary: It's a good idea to install the Apple's compiler group of programs from the XCode DVD.
Thanks.

Resources