[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
no make target for mkoctfile.exe
From: |
Benjamin Lindner |
Subject: |
no make target for mkoctfile.exe |
Date: |
Sat, 16 Jan 2010 18:02:20 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Hello,
I am trying to build current development sources for mingw,
and the build succeeds past building the documentation, but
then fails with
Making all in test
make[2]: Entering directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2/test'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2/test'
make[2]: Entering directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2'
make[2]: *** No rule to make target `mkoctfile.exe', needed by `all-am'.
Stop.
make[2]: Leaving directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2'
make: *** [all] Error 2
I then commented out the make rule for mkoctfile.exe in makefile.am
as
diff -r c146b308739f Makefile.am
--- a/Makefile.am Thu Jan 14 14:07:33 2010 +0100
+++ b/Makefile.am Sat Jan 16 17:58:42 2010 +0100
@@ -144,11 +144,11 @@
mkoctfile.cc: mkoctfile.cc.in Makefile
@$(do_subst_config_vals)
-# ifneq ($(EXEEXT),)
-# mkoctfile$(EXEEXT): mkoctfile.o
-# $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
-# $(ALL_LDFLAGS) -o $@ mkoctfile.o
-# endif
+ifneq ($(EXEEXT),)
+mkoctfile$(EXEEXT): mkoctfile.o
+ $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
+ $(ALL_LDFLAGS) -o $@ mkoctfile.o
+endif
run-octave: run-octave.in Makefile
@$(do_subst_script_vals)
but then I get the error
make[2]: Entering directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2'
make[2]: *** No rule to make target `mkoctfile.o', needed by
`mkoctfile.exe'. Stop.
make[2]: Leaving directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/octmgw32/octave/.build_mingw32_octave-tip-4_gcc-4.4.0-dw2'
make: *** [all] Error 2
Now there is a rule to create mkoctfile.cc from mkoctfile.cc.in.
But I'd thought make could figure out how to compile a .o from a .cc
file without explicit rules for that, shouldn't it?
benjamin
- no make target for mkoctfile.exe,
Benjamin Lindner <=