From a027fa3a8307a2d04b2a8460071b76134be29ddc Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Include config.h.in in tarball, install should create directories first. --- Makefile.in | 3 +++ configure.ac | 1 + dmesg/Makefile.in | 2 ++ uname/Makefile.in | 2 ++ 4 files changed, 8 insertions(+) diff --git a/Makefile.in b/Makefile.in index fde6494..a2026de 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 diff --git a/configure.ac b/configure.ac index 000a5a1..c94c15d 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/dmesg/Makefile.in b/dmesg/Makefile.in index 8917154..bb23f07 100644 --- a/dmesg/Makefile.in +++ b/dmesg/Makefile.in @@ -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 diff --git a/uname/Makefile.in b/uname/Makefile.in index 2bec44d..3c10dee 100644 --- a/uname/Makefile.in +++ b/uname/Makefile.in @@ -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 -- 1.8.3.1