Related
Kenorb Mine Makefileare: .PHONY: check
check:
ifneq $(shell echo 123), $(shell echo 123)
$(error Not equal)
endif
When I run, I get the error: $ make
Makefile:3: *** Not equal. Stop.
However, this should only happen if they a
Kenorb Mine Makefileare: .PHONY: check
check:
ifneq $(shell echo 123), $(shell echo 123)
$(error Not equal)
endif
When I run, I get the error: $ make
Makefile:3: *** Not equal. Stop.
However, this should only happen if they a
Kenorb Mine Makefileare: .PHONY: check
check:
ifneq $(shell echo 123), $(shell echo 123)
$(error Not equal)
endif
When I run, I get the error: $ make
Makefile:3: *** Not equal. Stop.
However, this should only happen if they a
Kenorb Mine Makefileare: .PHONY: check
check:
ifneq $(shell echo 123), $(shell echo 123)
$(error Not equal)
endif
When I run, I get the error: $ make
Makefile:3: *** Not equal. Stop.
However, this should only happen if they a
Kenorb Mine Makefileare: .PHONY: check
check:
ifneq $(shell echo 123), $(shell echo 123)
$(error Not equal)
endif
When I run, I get the error: $ make
Makefile:3: *** Not equal. Stop.
However, this should only happen if they a
Kenorb Mine Makefileare: .PHONY: check
check:
ifneq $(shell echo 123), $(shell echo 123)
$(error Not equal)
endif
When I run, I get the error: $ make
Makefile:3: *** Not equal. Stop.
However, this should only happen if they a
KKG First, this makefile doesn't work all:
A=$(shell stat -c %Y test1);\
echo "A is $$A";\
touch test1;\
B=$(shell stat -c %Y test1);\
echo "B is $$B";\
if (($$A<$$B)); then echo true; fi
Shell output: $ make
A=1513082575;\
echo "A is
rr currentDNS=$(networksetup -getdnsservers Wi-Fi)
GOOGLE="8.8.8.8 8.8.4.4"
echo '+'$currentDNS'+'
echo '+'$GOOGLE'+'
It appears that GOOGLE == currentDNS. if [ "$currentDNS" = "$GOOGLE" ];then
echo OKK
fi
but it returns false Gilles Quenot Try this with
rr currentDNS=$(networksetup -getdnsservers Wi-Fi)
GOOGLE="8.8.8.8 8.8.4.4"
echo '+'$currentDNS'+'
echo '+'$GOOGLE'+'
It appears that GOOGLE == currentDNS. if [ "$currentDNS" = "$GOOGLE" ];then
echo OKK
fi
but it returns false Gilles Quenot Try this with
Cpp learner I have the following code: LOCAL_VERSION := $(shell some_binary -v | head -n 1)
REMOTE_VERSION := $(shell curl -s https://example.com/key)
all:
ifeq($(REMOTE_VERSION), $(LOCAL_VERSION))
@echo yes
endfi
But I get this: user:tmp use
Cpp learner I have the following code: LOCAL_VERSION := $(shell some_binary -v | head -n 1)
REMOTE_VERSION := $(shell curl -s https://example.com/key)
all:
ifeq($(REMOTE_VERSION), $(LOCAL_VERSION))
@echo yes
endfi
But I get this: user:tmp use
Phoenix I want to create a makefile that runs a program in C++ once, with "CXXFLAGS=-std=c++11 -g -O3 -DTEST -fopenmp", and once with: "CXXFLAGS=-std=c++11 -g - O3 -fopenmp" finally outputs two different files like P1-Test and P1. How can I edit this file? CXX
red 888 ❯ make --version
GNU Make 3.81
❯ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
How can I pass a variable to $(shell) from inside a for loop? I can access the var outside of $(shell), but I don't know how to pass it to A_L
user 541686 when i run export PATH := mypath
$(error $(shell echo "$${PATH}"))
Nothing seems to PATHchange for my call shell. Why is this happening and how do I actually change the PATHfor shellcall? Florian Weimer Is this GNU make? There's a long-standing GN
red 888 ❯ make --version
GNU Make 3.81
❯ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
How can I pass a variable to $(shell) from inside a for loop? I can access the var outside of $(shell), but I don't know how to pass it to A_L
dkn37 I'm writing a static pattern rule to generate a list of dependencies for targets matching the pattern. Dependencies are generated via shell commands (file contents provide information about dependencies). Here is an example of an explicit rule: f1.o: $(s
dkn37 I'm writing a static pattern rule to generate a list of dependencies for targets matching the pattern. Dependencies are generated via shell commands (file contents provide information about dependencies). Here is an example of an explicit rule: f1.o: $(s
w I have a GNU makefile . It runs fine on Linux, Solaris and OS X. However, under Cygwin-32, Cygwin-64 and MinGW it produces: /bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo 2.0.4(0.287/5/3) | egrep -i -c "fc22.i686"'
Th
red 888 ❯ make --version
GNU Make 3.81
❯ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
How can I pass a variable to $(shell) from inside a for loop? I can access the var outside of $(shell), but I don't know how to pass it to A_L
red 888 ❯ make --version
GNU Make 3.81
❯ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
How can I pass a variable to $(shell) from inside a for loop? I can access the var outside of $(shell), but I don't know how to pass it to A_L
red 888 ❯ make --version
GNU Make 3.81
❯ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
How can I pass a variable to $(shell) from inside a for loop? I can access the var outside of $(shell), but I don't know how to pass it to A_L
user 541686 when i run export PATH := mypath
$(error $(shell echo "$${PATH}"))
Nothing seems to PATHchange for my call shell. Why is this happening and how do I actually change the PATHfor shellcall? Florian Weimer Is this GNU make? There's a long-standing GN
red 888 ❯ make --version
GNU Make 3.81
❯ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
How can I pass a variable to $(shell) from inside a for loop? I can access the var outside of $(shell), but I don't know how to pass it to A_L
red 888 ❯ make --version
GNU Make 3.81
❯ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
How can I pass a variable to $(shell) from inside a for loop? I can access the var outside of $(shell), but I don't know how to pass it to A_L
dkn37 I'm writing a static pattern rule to generate a list of dependencies for targets matching the pattern. Dependencies are generated via shell commands (file contents provide information about dependencies). Here is an example of an explicit rule: f1.o: $(s
w I have a GNU makefile . It runs fine on Linux, Solaris and OS X. However, under Cygwin-32, Cygwin-64 and MinGW it produces: /bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo 2.0.4(0.287/5/3) | egrep -i -c "fc22.i686"'
Th
Rohan Kishibe I'm writing a shell script and trying to use a findcommand and now I'm having a problem. I want to search for files in a specific directory, but some files have the same name except for the timestamp. E.g: /foo/bar/samename_160904.csv
/foo/bar/sa
Deroca I've been struggling to figure out how to compare the output of a command stored in a variable with the contents of another variable (also a string) in Shell Script. I know this looks like a basic RTFM case, but I've done it, but I really can't figure i
Henrik Bree The first field is the username, the second field is the password, and the last field indicates the action (login/register) File 1: User Input hello,world,register
File 2: Plain Text Database admin,123
user,321
foo,bar
How to compare user input w