From: Ben Pfaff Date: Wed, 20 May 2009 21:43:49 +0000 (-0700) Subject: dirs: Add variable for bindir. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ab141b97e4db666d86a3394623d93ce209e5ef1;p=openvswitch dirs: Add variable for bindir. brcompatd wants to use this in an upcoming commit. --- diff --git a/lib/automake.mk b/lib/automake.mk index 63bb0274..255e2fd3 100644 --- a/lib/automake.mk +++ b/lib/automake.mk @@ -149,7 +149,8 @@ lib/dirs.c: Makefile ($(ro_c) && \ echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \ echo 'const char ovs_rundir[] = "@RUNDIR@";' && \ - echo 'const char ovs_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp + echo 'const char ovs_logdir[] = "@LOGDIR@";' && \ + echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp mv lib/dirs.c.tmp lib/dirs.c install-data-local: diff --git a/lib/dirs.h b/lib/dirs.h index c45054f5..966fd9ce 100644 --- a/lib/dirs.h +++ b/lib/dirs.h @@ -37,5 +37,6 @@ extern const char ovs_pkgdatadir[]; /* /usr/local/share/openvswitch */ extern const char ovs_rundir[]; /* /usr/local/var/run */ extern const char ovs_logdir[]; /* /usr/local/var/log */ +extern const char ovs_bindir[]; /* /usr/local/bin */ #endif /* dirs.h */