X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fautomake.mk;h=0750910736ed0fb67219d7b2f768e90974dcc59b;hb=847a0730a03f0fb4461c79ae957eabe03db71f53;hp=5cd4722e5c645e6034276a689608ba3047f00658;hpb=614c4892032f424efa5f0ec404b2d499acad254d;p=openvswitch diff --git a/lib/automake.mk b/lib/automake.mk index 5cd4722e..07509107 100644 --- a/lib/automake.mk +++ b/lib/automake.mk @@ -208,7 +208,8 @@ endif EXTRA_DIST += \ lib/dh1024.pem \ lib/dh2048.pem \ - lib/dh4096.pem + lib/dh4096.pem \ + lib/dirs.c.in EXTRA_DIST += \ lib/common.man \ @@ -230,12 +231,14 @@ EXTRA_DIST += \ lib/vlog-syn.man \ lib/vlog.man -lib/dirs.c: Makefile - ($(ro_c) && \ - echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \ - echo 'const char ovs_rundir[] = "@RUNDIR@";' && \ - echo 'const char ovs_logdir[] = "@LOGDIR@";' && \ - echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp +lib/dirs.c: lib/dirs.c.in Makefile + ($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \ + -e 's,[@]srcdir[@],$(srcdir),g' \ + -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \ + -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \ + -e 's,[@]bindir[@],"$(bindir)",g' \ + -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \ + > lib/dirs.c.tmp mv lib/dirs.c.tmp lib/dirs.c install-data-local: lib-install-data-local