summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorFrank Seifferth <frankseifferth@posteo.net>2020-06-03 21:30:20 +0100
committerFrank Seifferth <frankseifferth@posteo.net>2020-06-03 21:30:20 +0100
commite4c38261032c97caada9c3378175127ba41c3dc0 (patch)
treef187a092abc8e9ab2bd060224a953304f5ad25a7 /src/Makefile
parentb4ab5112c75edc4fd4407981cbb838c05656c4c5 (diff)
Avoid using `&&` in Makefile
Using `test -f y.tab.c && mv ...` in the Makefile causes `make` to exit with a non-zero exit code in case the file does not exist. This can lead to issues with automating builds.
Diffstat (limited to 'src/Makefile')
-rwxr-xr-xsrc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index e79b0d2..863988e 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -189,7 +189,7 @@ $(name)qref: sc.h
$(OBJS) : y.tab.h experres.h statres.h
y.tab.h : gram.y gram.c
- test -f y.tab.c && mv y.tab.c gram.c
+ if test -f y.tab.c; then mv y.tab.c gram.c; fi
gram.c : gram.y
$(YACC) -d $<