задача: пересобрать проект, написанный на сях... проект чужой, потому возникли проблемы... сам НЕ программист, но нужда заставила...
не могу понять следующие строки из makefile'а, по идее тут должна быть отсылка к другому makefile'у, смотря что используем... я использую MinGW и Microsoft Visual C++ 2003...
я бы не задавался эти вопросом, если бы на мое "make vc" мне бы не отвечали:
Fatal: 'FORCE' does not exist - don't know how to make it
вот что надыбал по поводу FORCE (выписка из GNU make overview, вместо него у меня стоит пакет MinGW... по идее должны быть взаимозаменяемы, во всяком случае, здесь):
Rules without Commands or Dependencies
If a rule has no dependencies or commands, and the target of the rule is a nonexistent file, then make imagines this target to have been updated whenever its rule is run. This implies that all targets depending on this one will always have their commands run.
An example will illustrate this:
clean: FORCE
rm $(objects)
FORCE:
Here the target `FORCE' satisfies the special conditions, so the target `clean' that depends on it is forced to run its commands. There is nothing special about the name `FORCE', but that is one name commonly used this way.
As you can see, using `FORCE' this way has the same results as using `.PHONY: clean'.
Using `.PHONY' is more explicit and more efficient. However, other versions of make do not support `.PHONY'; thus `FORCE' appears in many makefiles. See section Phony Targets.
признаться, яснее не стало... буду признателен за любые соображения, что не ясно - спрашивайте...
не знаю, куда постить вопрос, решил сюда...
задача: пересобрать проект, написанный на сях... проект чужой, потому возникли проблемы... сам НЕ программист, но нужда заставила...
не могу понять следующие строки из makefile'а, по идее тут должна быть отсылка к другому makefile'у, смотря что используем... я использую MinGW и Microsoft Visual C++ 2003...
------------------------------------------------------------------------------------------------
vc: FORCE
@$(MAKE) -s -f makefile.vc
FORCE:
------------------------------------------------------------------------------------------------
что такое "force"? оператор? утилитка какая-то?
я бы не задавался эти вопросом, если бы на мое "make vc" мне бы не отвечали:
Fatal: 'FORCE' does not exist - don't know how to make it
вот что надыбал по поводу FORCE (выписка из GNU make overview, вместо него у меня стоит пакет MinGW... по идее должны быть взаимозаменяемы, во всяком случае, здесь):
Rules without Commands or Dependencies
If a rule has no dependencies or commands, and the target of the rule is a nonexistent file, then make imagines this target to have been updated whenever its rule is run. This implies that all targets depending on this one will always have their commands run.
An example will illustrate this:
clean: FORCE
rm $(objects)
FORCE:
Here the target `FORCE' satisfies the special conditions, so the target `clean' that depends on it is forced to run its commands. There is nothing special about the name `FORCE', but that is one name commonly used this way.
As you can see, using `FORCE' this way has the same results as using `.PHONY: clean'.
Using `.PHONY' is more explicit and more efficient. However, other versions of make do not support `.PHONY'; thus `FORCE' appears in many makefiles. See section Phony Targets.
признаться, яснее не стало... буду признателен за любые соображения, что не ясно - спрашивайте...