Commit db071294167f61e519d3f10a94bc57bcd3564424
1 parent
66518ce6
Use -ef to test whether source and build directory are the same
Showing
1 changed file
with
1 additions
and
1 deletions
cscripts/Makefile.am
| @@ -241,7 +241,7 @@ uninstall-hook: | @@ -241,7 +241,7 @@ uninstall-hook: | ||
| 241 | 241 | ||
| 242 | # Files to be removed in build directory | 242 | # Files to be removed in build directory |
| 243 | clean-local: | 243 | clean-local: |
| 244 | - @if test '@top_srcdir@' != '@top_builddir@'; then \ | 244 | + @if ! [ '@top_srcdir@' -ef '@top_builddir@' ]; then \ |
| 245 | rm -rf $(top_builddir)/cscripts/cs*.py; \ | 245 | rm -rf $(top_builddir)/cscripts/cs*.py; \ |
| 246 | rm -rf $(top_builddir)/cscripts/obsutils.py; \ | 246 | rm -rf $(top_builddir)/cscripts/obsutils.py; \ |
| 247 | rm -rf $(top_builddir)/cscripts/modutils.py; \ | 247 | rm -rf $(top_builddir)/cscripts/modutils.py; \ |