aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-24 14:41:57 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-24 14:41:57 +0000
commite91fb2cef459e7b7be07958cbd60f2e6d1a57e7e (patch)
tree4a99ba602d25ae614a8757c80b59971eaab2d5f4 /Makefile
parent5dc24dc916cecdb1bf141e4c39435f48756c9da8 (diff)
Remove the remaining bashisms in the Makefile/mkpkgconfig
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@220099 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 39098c413..b15e06b78 100644
--- a/Makefile
+++ b/Makefile
@@ -410,7 +410,9 @@ distclean: $(SUBDIRS_DIST_CLEAN) _clean
rm -f build_tools/menuselect-deps
datafiles: _all
- if [ x`$(ID) -un` = xroot ]; then CFLAGS="$(_ASTCFLAGS) $(ASTCFLAGS)" bash build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
+ if [ `$(ID) -u` = 0 ]; then \
+ CFLAGS="$(_ASTCFLAGS) $(ASTCFLAGS)" build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; \
+ fi
# Should static HTTP be installed during make samples or even with its own target ala
# webvoicemail? There are portions here that *could* be customized but might also be
# improved a lot. I'll put it here for now.