Questions tagged [target]

In a makefile, targets are associated with a series of commands to execute when an action is requested.

1932 questions
31
votes
5 answers

CMake: how to change compiler for individual target

I have embedded project using cross compiler. I would like to introduce Google test, compiled with native GCC compiler. Additionally build some unit test targets with CTC compiler. Briefly: I have 3 different targets and compile them with 3…
Andrew123
  • 437
  • 1
  • 4
  • 5
30
votes
4 answers

Force Makefile to execute script before building targets

I am using Makefiles. However, there is a command (zsh script) I want executed before any targets is executed. How do I do this? Thanks!
anon
  • 41,035
  • 53
  • 197
  • 293
29
votes
8 answers

XHTML Strict 1.0 - target="_blank" not valid?

I just validated my actual XHTML Strict 1.0 doc with the w3c validator service.. and it says that,
29
votes
3 answers

What is the use of target attribute in HTML form tag?

While I was implementing a file upload progress bar in PHP, I saw this target attribute in form tag. The code was like this:
" method="POST" id="myForm" enctype="multipart/form-data" …
user2823982
28
votes
3 answers

How do I iterate over all CMake targets programmatically?

Is there a way to get all targets of a CMake project from within the top level CMakeLists.txt, i.e. iterate over the targets programmatically? The reason I want to do this is to apply some XCode specific settings to every target . . if…
learnvst
  • 15,455
  • 16
  • 74
  • 121
28
votes
2 answers

Makefile - Make dependency only if file doesn't exist

Like the title says, I would like to make a dependency only if a certain file does not exist, NOT every time it updates. I have a root directory (the one with the makefile) and in it a sub-directory called "example". In my root directory are four .h…
Daniel
  • 1,920
  • 4
  • 17
  • 35
25
votes
4 answers

Using rel="noopener" in window.open()

So I know that I can apply rel="noopener in an a tag when using target="_blank". But I'm trying to pass it as an argument to window.open(), ie: window.open('http://cats.com', '_blank', 'rel=noopener') however it doesn't seem to be working the way…
Bryantee
  • 474
  • 1
  • 6
  • 12
25
votes
1 answer

How to call a CMake function from add_custom_target/command?

Is it possible to call a CMake function out of an add_custom_target or add_custom_command? I know I could move the CMake function to a Python (or whatever) script and call it from add_custom_target/command but I would like to avoid having tons of…
Martin
  • 968
  • 3
  • 10
  • 19
24
votes
2 answers

how to call an ant target when overriding the target in a child file

i have a project that uses a parent ant file similar to this: RUN TEST FROM PARENT…
nheid
  • 1,088
  • 2
  • 11
  • 17
24
votes
3 answers

make wildcard subdirectory targets

I have a "lib" directory in my applications main directory, which contains an arbitrary number of subdirectories, each having its own Makefile. I would like to have a single Makefile in the main directory, that calls each subdirectory's Makefile. I…
Zed
  • 57,028
  • 9
  • 76
  • 100
24
votes
14 answers

Input button target="_blank" isn't causing the link to load in a new window/tab

I have an HTML file with an input button. This is only an example button, but it's including all necessary info of code: For some reason,…
Teemu Laine
  • 361
  • 1
  • 3
  • 13
23
votes
7 answers

Get target of shortcut folder

How do you get the directory target of a shortcut folder? I've search everywhere and only finds target of shortcut file.
Phu Minh Pham
  • 1,025
  • 7
  • 21
  • 38
22
votes
7 answers

jquery addClass() not working with event.target

Please help. Why is the jquery addClass() not working with event.target? I have made a code and it supposed to add class on the target when clicked, but it does not work, and it says,e.target.addClass is not a…
qtgye
  • 3,580
  • 2
  • 15
  • 30
22
votes
1 answer

Proper method for wildcard targets in GNU Make

I am trying to write a Makefile with my source and object files separated and I can't seem to figure out the proper way to accomplish this. I have two methods that work but I'm hoping someone can point the "correct" way to do this is. My project is…
nhmood
  • 245
  • 1
  • 2
  • 5
21
votes
1 answer

What is the value of MSBuildThisFileDirectory?

If I have a project structure like this: \MySolution \MyProject ReadMe.md \build MyProject.targets What would the value of $(MSBuildThisFileDirectory) be when used in the MyProject.targets file? Assuming my solution folder is in the…
Matt W
  • 11,753
  • 25
  • 118
  • 215