是否有办法告诉汽车不要解释Makfile.am的一部分?
具体来说,我试图在Makfile.am上写成一个有条件的文件。
是否有办法逃脱或引证马克文。 是否有案卷,以便把复制件逐字解到目的地吗? 具体地说,我不想在以下一些方面解释目的:
ifeq "$(SOMEVAR)" ""
SOMEVAR="default_value"
endif
是否有办法告诉汽车不要解释Makfile.am的一部分?
具体来说,我试图在Makfile.am上写成一个有条件的文件。
是否有办法逃脱或引证马克文。 是否有案卷,以便把复制件逐字解到目的地吗? 具体地说,我不想在以下一些方面解释目的:
ifeq "$(SOMEVAR)" ""
SOMEVAR="default_value"
endif
解剖的原因确实是,一些晚宴没有。 尽管如此,如果你真的必须这样做,你可以把你的刀子定义为<条码>组合>、条码>和<条码>中的一种变量。 这样,汽车就能够看到。 注意使用<条码>AM_SUBST_NOTMAKE,以避免形成如下线:<条码>FOO = @FOO@。
dnl In configure.ac:
snippet=
ifeq ($(somevar),Y)
foo
endif
AC_SUBST([snippet])
AM_SUBST_NOTMAKE([snippet])
并且
## In Makefile.am:
@snippet@
我真诚地希望,这样做比这好。
我找到了另一种解决办法。 你们可以把你作为替罪羊的借方放在单独档案中,然后做:
$(eval include $(srcdir)/Include.Makefile)
Since automake doesn t understand $(eval
it just leaves the entire line intact. Thus you can put whatever you want into the other file and GNU make will happily read it. Note you can t just use include
directly since Automake does understand that and will go into the other file.
这样做的最简单办法是在<代码>ifdef、ifeq
、ifneq
、>else
和endif
之前插入一个空间。 因此,这些关键词没有得到汽车主的承认。 为了保证添加一个空间,它用一个表格赢得了一定的工作。
如何:
SOMEVAR=$(if $(SOMEVAR),$(SOMEVAR),"default_value")
在汽车(GNU汽车)中,1.16.5 简单条件:ifeq. Endif
确实通过汽车进入 • 在我用新路线和空间把关键词分开时,如:
if %?INSTALL%
# 1 preceding newline
ifeq (true,$(call direction,uninstall %DIR% PROGRAMS %BASE%)) # 2 preceding spaces
## -------------- ##
## Uninstalling. ##
## -------------- ##
.PHONY uninstall-am: uninstall-%DIR%PROGRAMS-$(%NDIR%_STATUS)
uninstall-%DIR%PROGRAMS: uninstall-%DIR%PROGRAMS-$(%NDIR%_STATUS)
uninstall-%DIR%PROGRAMS-supported: uninstall-%DIR%PROGRAMS
uninstall-%DIR%PROGRAMS-unsupported:
@echo "%NDIR% (PROGRAMS) not installed" >&2
uninstall-%DIR%PROGRAMS: $(install_%DIR%_PROGRAMS)
@test $<
&& $(NORMAL_UNINSTALL)
&& $(autotoolsdir)/uninstall -P PROGRAMS -LT ?LIBTOOL? -I $? >&2
endif # 2 preceding spaces
# 1 subsequent newline
endif %?INSTALL%
如上文所述,如果我把汽车条件与有条件条件相结合,情况尤其如此。
Is there a way to have make display the line number where it declares an error? The -d switch doesn t seem to cut it. Updated: Example output: Reaping winning child 0x08aa8648 PID 9381 /bin/sh: ...
I m revisiting Python after Michael Sparks s excellent walk through of Peter Norvig s Python spell checker at the SO DevDay in London. One of the points he highlighted was how clean Python is to look ...
Is there a command line way in make to find out which of the prerequisites of a target is not updated?
I m working on a cross-platform 2D engine for mobile devices (Windows Mobile 6 and Android). My Windows version is pretty much ready, but I still need to make sure the same functionality is available ...
I want to just type make all and have the following Makefile do everything it s supposed to do: LEX = lex YACC = yacc CC = gcc calcu: y.tab.o lex.yy.o $(CC) -o calcu y.tab.o lex.yy.o -ly -lfl ...
在我执政时,我发现以下错误:
How can you tell, from the command line, how many cores are on the machine when you re running Mac OS X? On Linux, I use: x=$(awk /^processor/ {++n} END {print n+1} /proc/cpuinfo) It s not ...
I have created two files: tunables.h #ifndef TUNABLES_H #define TUNABLES_H void tunables_load_conservative(); void tunables_load_aggressive(); extern int timer_x; #endif /*TUNABLES_H */ and ...