我的Makefile出现了一个小问题,它与一个文件夹冲突。首先,我使用Makefile在每个示例中运行几个shell命令:
Makefile内容:
test:
@./node_modules/.bin/mocha -R $(REPORTER) \
$(WATCH) \
--ui $(UI)
如果在Makefile的同一目录中,我在运行以下命令时有一个名为test的文件夹:
make test
我得到了以下结果:
make: `test' is up to date.
我真的不知道如何更好地解释这一点,但我很乐意回答并询问更多细节。
我编写了一个解析器程序(用OCaml编写),将输入作为xsd,然后将其生成为Coq文件。但在终端机上需要大量的时间(~:0m.0152)才能产生。我想知道一些建议,才能使推车跑得更快?例如,使程序变慢的原因是什么?这是我第一次面对这个运行时间问题。因此,我非常感谢您对此有任何建议/经验?
非常感谢
编辑:我可以尝试通过主文件解释:
open Libxml;; (*it is the library for xml file*)
open Error;; (* it is for the error message*)
let main () =
let xml = parse_
GNU有什么方法可以在Makefile本身中包含make的参数吗?具体来说,如果--check-symlink-times参数总是应用于给定的Makefile,那么在Makefile中是否有某种方式来标注这个值呢?而不是打电话
$ make --check-symlink-times
最好自己调用make,让Makefile指定一些参数。
$ make
关于下面的GNU makefile示例,我有一个问题:
.PHONY: $(subdirs) build x y
subdirs = a b c
build: x y
x: target=prepare
x: $(subdirs)
y: target=build
y: $(subdirs)
$(subdirs):
$(make) -f $@/makefile $(target)
当我运行make时,我希望为每个子目录调用make,指定目标“prepare”,然后指定目标“build”。不幸的是,$(subdirs)目标执行了一次(生成'prepare‘目标),但不会
我正在尝试用g++构建一个程序,但是我得到了“未定义的引用”。
文件夹结构:
Makefile
libs/
libcrypotpp.a
libz.a
sources/
here are the sources and headers
out/
objfiles/
Makefile如下所示:
#makefile for program
#needs libz.a and libcryptopp.a
CC = g++
SOURCES = sources/*.cpp
LIBS = -lcryptopp -lz -pthread
LIBPATH = libs/
OBJPATH = obj