Create rundir, logdir, pkidir at install time.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Oct 2008 19:42:18 +0000 (12:42 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 23 Oct 2008 21:07:25 +0000 (14:07 -0700)
lib/automake.mk

index be0f5f61724acf8d36541fcff0a95d37ff46b2c1..1d0f8fab3be4b638c7c48f87052e3a6774152647 100644 (file)
@@ -65,3 +65,8 @@ lib/dirs.c: Makefile
         echo 'const char ofp_rundir[] = "@RUNDIR@";' && \
         echo 'const char ofp_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp
        mv lib/dirs.c.tmp lib/dirs.c
+
+install-data-local:
+       $(MKDIR_P) $(DESTDIR)$(RUNDIR)
+       $(MKDIR_P) $(DESTDIR)$(PKIDIR)
+       $(MKDIR_P) $(DESTDIR)$(LOGDIR)