'make install' installs programs and man pages
[virt-mem.git] / uname / Makefile.in
index 0211b30..2bec44d 100644 (file)
@@ -20,6 +20,7 @@ PACKAGE               = @PACKAGE_NAME@
 VERSION                = @PACKAGE_VERSION@
 
 INSTALL                = @INSTALL@
+bindir         = @bindir@
 
 SYNTAX         = -pp "camlp4o -I$$(ocamlc -where)/bitmatch bitmatch.cma pa_bitmatch.cmo"
 
@@ -56,4 +57,9 @@ virt-uname.opt: $(XOBJS) ../lib/virt_mem.cmxa
        ocamlfind ocamlopt \
          $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $(OCAMLOPTLIBS) $(XOBJS) -o $@
 
+install:
+       if [ -x virt-uname.opt ]; then \
+         $(INSTALL) -m 0755 virt-uname.opt $(DESTDIR)$(bindir)/virt-uname; \
+       fi
+
 include ../Make.rules
\ No newline at end of file