Questions tagged [automatic-variable]

18 questions
0
votes
1 answer

vpath not picking up newly built objects

I have this Makefile (and GNU Make): vpath %.o .objs OBJDIR=.objs all: symbol_tests.so symbol_tests.so: symbol_tests.o symbol.o # simulate linking @echo Linking target: $@, prerequisites: $^ %.o: %.c | $(OBJDIR)/ gcc -o $(OBJDIR)/$@ -c…
thoni56
  • 3,145
  • 3
  • 31
  • 49
0
votes
1 answer

Powershell equivalent to $_ in bash

In bash, to get argument from last command we call $_. I have searched but couldn't find what is equivalent to bash's $_ in PowerShell ? Example: $ mkdir 20171206 $ cd $_ Now bash current working directory would be 20171206 and I am trying to…
Raja G
  • 5,973
  • 14
  • 49
  • 82
0
votes
1 answer

Makefile automatic variables not escaping characters in filenames

I am using automatic variables with static pattern rules in a Makefile, but I have a problem with filenames with parentheses. The parentheses are not escaped properly for the shell, and I get a syntax error from the shell: /bin/sh: -c: line 0:…
reynoldsnlp
  • 1,072
  • 1
  • 18
  • 45
1
2