How about using $?
to echo the exit status of the last command?
SVN_INFO := $(shell svn info . 2> /dev/null; echo $$?) ifeq ($(SVN_INFO),1) $(error "Not an SVN repo...") endif
Related Contents:
- How to assign the output of a command to a Makefile variable
- How to set child process’ environment variable in Makefile
- How to get a shell environment variable in a makefile?
- Returning value from called function in a shell script
- Why use make over a shell script?
- How to source a script in a Makefile?
- Escaping in makefile
- Can GNU make handle filenames with spaces?
- How to get exit status of a shell command used in GNU Makefile?
- Find and replace in file and overwrite file doesn’t work, it empties the file
- Going to a specific line number using Less in Unix
- Check if a file exists with a wildcard in a shell script [duplicate]
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- Getting the last argument passed to a shell script
- How can I parse a YAML file from a Linux shell script?
- Curl to return http status code along with the response
- What are the uses of the exec command in shell scripts? [closed]
- How to check if a file exists in a shell script
- Compare a string using sh shell
- What does @: (at symbol colon) mean in a Makefile?
- What is the difference between a directory and a folder?
- Compare two files line by line and generate the difference in another file
- Why 0 is true but false is 1 in the shell?
- How to invoke bash, run commands inside the new shell, and then give control back to user?
- How to print the number of characters in each line of a text file
- List goals/targets in GNU make that contain variables in their definition
- Choosing the shell that SSH uses?
- How to rename multiple files by replacing word in file name?
- Using telnet in shell script
- Shell Script Syntax Error: Unexpected End of File [duplicate]
- Commandline hexdump with ASCII output?
- Write byte at address (hexedit/modify binary from the command line)
- Trim leading and trailing spaces from a string in awk
- Append to GNU make variables via command line
- Subtract 1 hour from date in UNIX shell script
- Time condition loop in shell
- Show full path when using options
- How would you launch a browser from the a node.js command line script [duplicate]
- How to run a series of vim commands from command prompt
- ZSH Agnoster Theme showing machine name
- Read first x lines of csv file into new outfile?
- using OR in shell script
- Error in make command makefile:18: *** missing separator. Stop [duplicate]
- How to replace one character with two characters using tr
- How do I get the default gateway in Linux given the destination?
- Shell cmd “date” without new line in the end
- Makefile ifeq logical AND
- How to resume screen?
- How to generate a 2hour-long blank video
- How to split a file using a numeric suffix