Include config.h.in in tarball, install should create directories first.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 10 Jun 2008 15:12:34 +0000 (16:12 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 10 Jun 2008 15:12:34 +0000 (16:12 +0100)
Makefile.in
configure.ac
dmesg/Makefile.in
uname/Makefile.in

index fde6494..a2026de 100644 (file)
@@ -20,6 +20,7 @@ PACKAGE               = @PACKAGE_NAME@
 VERSION                = @PACKAGE_VERSION@
 
 INSTALL                = @INSTALL@
+MKDIR_P                = @MKDIR_P@
 datarootdir    = @datarootdir@
 mandir         = @mandir@
 
@@ -83,6 +84,7 @@ virt-%.1:
        echo '.so man1/virt-mem.1' > $@
 
 install-man:
+       $(MKDIR_P) $(DESTDIR)$(mandir)/man1
        $(INSTALL) -m 0644 $(MANPAGES) $(DESTDIR)$(mandir)/man1/
 
 else
@@ -100,6 +102,7 @@ dist:
        tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
        hg log --style changelog > $(PACKAGE)-$(VERSION)/ChangeLog
        $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
+       $(INSTALL) -m 0644 config.h.in $(PACKAGE)-$(VERSION)/
        tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
        rm -rf $(PACKAGE)-$(VERSION)
        ls -l $(PACKAGE)-$(VERSION).tar.gz
index 000a5a1..c94c15d 100644 (file)
@@ -20,6 +20,7 @@ dnl Process this file with autoconf to produce a configure script.
 AC_INIT(virt-mem,0.2.3)
 
 AC_PROG_INSTALL
+AC_PROG_MKDIR_P
 
 dnl Check for basic OCaml environment & findlib.
 AC_PROG_OCAML
index 8917154..bb23f07 100644 (file)
@@ -20,6 +20,7 @@ PACKAGE               = @PACKAGE_NAME@
 VERSION                = @PACKAGE_VERSION@
 
 INSTALL                = @INSTALL@
+MKDIR_P                = @MKDIR_P@
 bindir         = @bindir@
 
 SYNTAX         = -pp "camlp4o -I$$(ocamlc -where)/bitmatch bitmatch.cma pa_bitmatch.cmo"
@@ -59,6 +60,7 @@ virt-dmesg.opt: $(XOBJS) ../lib/virt_mem.cmxa
 
 install:
        if [ -x virt-dmesg.opt ]; then \
+         $(MKDIR_P) $(DESTDIR)$(bindir); \
          $(INSTALL) -m 0755 virt-dmesg.opt $(DESTDIR)$(bindir)/virt-dmesg; \
        fi
 
index 2bec44d..3c10dee 100644 (file)
@@ -20,6 +20,7 @@ PACKAGE               = @PACKAGE_NAME@
 VERSION                = @PACKAGE_VERSION@
 
 INSTALL                = @INSTALL@
+MKDIR_P                = @MKDIR_P@
 bindir         = @bindir@
 
 SYNTAX         = -pp "camlp4o -I$$(ocamlc -where)/bitmatch bitmatch.cma pa_bitmatch.cmo"
@@ -59,6 +60,7 @@ virt-uname.opt: $(XOBJS) ../lib/virt_mem.cmxa
 
 install:
        if [ -x virt-uname.opt ]; then \
+         $(MKDIR_P) $(DESTDIR)$(bindir); \
          $(INSTALL) -m 0755 virt-uname.opt $(DESTDIR)$(bindir)/virt-uname; \
        fi