phony | Tiny command line fake data generator | Generator Utils library
kandi X-RAY | phony Summary
kandi X-RAY | phony Summary
Tiny command line fake data generator.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of phony
phony Key Features
phony Examples and Code Snippets
Community Discussions
Trending Discussions on phony
QUESTION
I need a Makefile that create for every a
folder to then execute
hovercraft on the which need a folder as second argument
ANSWER
Answered 2022-Apr-10 at 17:43If I understand correctly that you want to make a directory "x", then execute hovercraft x.rst x/index.html
for every file "x.rst", then this should be a succinct way to do so.
QUESTION
Program tree:
...ANSWER
Answered 2022-Mar-31 at 22:59To fix the issue, you need to replace the comma with a space in $(TARGET): what,ever
The best way to make these applications would be to add instructions on compiling for each object or library you introduce
Such as adding files.o
QUESTION
I'm trying to use find_j=$(findstring j,$(filter-out --%,$(MAKEFLAGS)))
to find if there is -j option, so when I echo $(find_j)
the value is j
but when I compare it ifeq (j, $(find_j))
this returnes false
I cant understand where is the problem
my version of make is make-3.99.90
ANSWER
Answered 2022-Feb-14 at 17:32This seems to be imprecisely documented. While MAKEFLAGS
has the flags like e.g. -s
and -k
as ks
in it, the -j
flag gets processed in another way: it is not stripped of the leading dash -
AND it is not visible in the first pass of processing the makefile. Only when rules are executed, MAKEFLAGS
receives a value, albeit a processed form of the one you gave. -j3
elicits a -j3 --jobserver-auth=3,4
response from the command line transcriber of make
, while -j
stays -j
. So what does this mean for us? Obviously the feature to detect the requested parallelism at runtime is not stable or there are some good reasons not to access them (which is the case most of the time when you encounter exceptional behaviour in GNU tools), so maybe you can give us more information on what you are trying to achieve - maybe there is a way to circumvent accessing the command line.
QUESTION
so ive got a make file here and my project currently has a master.c and slave.c which both have main functions. therefore i just want to filter the slave.c file out of the building process. so I used fliter-out when defining the source files. but when run make the project keeps turning up with the "multiple definitions of main" error. why is this when filter-out should be hiding the slave.c file?
...ANSWER
Answered 2022-Feb-14 at 17:50The call
QUESTION
In my project, I am using callbacks for bi-directional calls from C into go and vice versa using CGO. I resolved the issue of circular dependencies by compiling the C part into a library, then compiling the go part into a library, then a final linker pass puts it all together. This is working fine when not using go modules. Go source files are listed on the command line explicitly. I have been told that as of go 1.12 "this is not the right way to do it".
As the project has grown, I now want to use go modules. Unfortunately, this changes the behaviour of the go compiler. It now wants to resolve external dependencies and implicitly includes them in the output file. Due to the circular dependency, it now always ends up with an undefined reference or multiple definitions. How to resolve circular dependencies when using cgo and go modules "the right way"?
This is a minimal example to illustrate the problem. Remove the file-name "hello.go" from the call to go in the Makefile to see how it falls apart.
This is the error message:
...ANSWER
Answered 2022-Jan-31 at 14:12If you look at the verbose output from the go build
command, you will see that when compiling the directory as a complete go package, the main.c
file is being included as part of the C code used in hello.go
.
From the documentation:
When the Go tool sees that one or more Go files use the special import "C", it will look for other non-Go files in the directory and compile them as part of the Go package
The easiest solution here is to separate the main C and Go packages, so that they don't interfere with each other's build process. Testing this out, removing the main.c
file will build libchello.a
and libgohello.a
, and then adding it back in will complete the build of main
.
QUESTION
I'm working with autotools for the first time, for a tool that's written in perl (SQLTeX), so only installation is required, no compilation.
The toplevel contains a simple Makefile.am
:
ANSWER
Answered 2022-Jan-31 at 13:10What am I doing wrong?
Although the Autotools support, with some caveats, recursing into directories where you provide pre-built makefiles, you cannot expect those pre-built makefiles to be able to rely on autotools-provided variables such as the standard directory variables bindir
and sysconfdir
. Thus, although it is allowed to rely on hand-written makefiles in subdirectories, this is probably a false trail for you.
I recommend going back to this:
If I create
Makefile.am
files in the sub-directories too, nothing seems to happen there
and working out what's wrong. The Autotools definitely support generating recursive build systems, and one Makefile.am
per directory is part of the usual approach to that. If it didn't work for you then my first guess would be that you forgot to list the extra makefiles in your AC_CONFIG_FILES
list.
As an alternative, just because you have multiple directories does not mean that you need to use recursive make
. It is quite possible to build such a project with the support of a single makefile, and the Autotools can help with such a makefile.
QUESTION
I recently moved from working in the terminal to VScode and am needing to generate debugging information to use with the debugger in vscode.
My makefile is:
...ANSWER
Answered 2022-Jan-26 at 23:05A good proposal is to remove the @
s in front of the command names to see what commands make
is executing.... To make a program debuggable, you need to check that all the compilation steps are done using the -g
flag and that the linking step has also included the -g
flag. Also a good option is to specify no optimization so you will not get to problems with breakpoints you cannot fix because the compiler has eliminated or changed the final code, and has broken the correspondence between source lines and points in the code.
If you take off all the @
s there, you will see the commands as make
is executing them, think you don't see now. I think there's a command (berkeley make has it) to make make
to print the commands even though the @
s remain in place.
By the way, as you are telling you are using vscode
it should be fine if you execute make
on the command line alone, to see the output of the commands, and try to see if it is some problem with make or with vscode itself.
As you have not provided your complete project, I'm sorry to say that I can only test it with dumb/fake files and no program can be made to test it with gdb.
I guess that the problem is that you have put your project sources in a different directory than where the program is built, and the sources cannot be found by gdb and so, no source debugging can be done because gdb cannot find the source files. Gdb has some way to specify the path to the source files... You should look at gdb documentation.
QUESTION
In my work I am using a Fortran based program called SPheno. Having SPheno-4.0.4 installed, I tried to install the new version SPheno-4.0.5, however, when selecting F90 = gfortran
in the Makefile, just as I did on my working SPheno-4.0.4 version, it returns me the following error:
ANSWER
Answered 2021-Oct-09 at 14:43The output means that make invoked this command:
QUESTION
Example of using ani-cli normally with no alias/automation
...ANSWER
Answered 2022-Jan-08 at 21:52The problem is that you're passing input to ani-cli
via pipe, and when echo
is done, the pipe closes, which closes ani-cli
's standard input stream (stdin for short), which ani-cli
detects as an error. Then there's no way to provide additional input.
Instead, pass the query as an argument (which the docs say you can do):
QUESTION
I have two files 1.gv
and 2.gv
which are Graphviz files.
I wrote this Makefile from what I could figure out:
...ANSWER
Answered 2021-Dec-21 at 18:52In your Makefile make sees that it needs all gv-files (SRC) to make one file: 1.gv (OUT) so in the loop the prerequisite changes $< but not the target $@.
You need to match a pattern and use patsubst
instead of subst
so OUT is a pattern of files.
I removed most variables for clarity. Feel free to add them back.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install phony
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page