summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2007-09-20 11:09:32 +0100
committerRichard W.M. Jones <rjones@redhat.com>2007-09-20 11:09:32 +0100
commit83d02ef50a87d1c62147aaf7c2b9ab688d093f16 (patch)
tree3002e0a9a8f4e2ce74cc95c6f4de6fb038640014 /Makefile.in
parent10d2bdb61dae083ff316c673c845a3a0e0aa6e32 (diff)
downloadvirt-top-83d02ef50a87d1c62147aaf7c2b9ab688d093f16.tar.gz
virt-top-83d02ef50a87d1c62147aaf7c2b9ab688d093f16.tar.xz
virt-top-83d02ef50a87d1c62147aaf7c2b9ab688d093f16.zip
* Makefile.in: Disable virt-df in this release until I have
time to fix it properly. * Makefile.in: Fix 'check-manifest' rule. Added 'make release'. * MANIFEST: Updated MANIFEST.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in53
1 files changed, 40 insertions, 13 deletions
diff --git a/Makefile.in b/Makefile.in
index 319b25f..789eaae 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -45,6 +45,23 @@ distclean:
rm -rf autom4te.cache
rm -f Makefile
+# Developer documentation (in html/ subdirectory).
+
+doc:
+ rm -rf html
+ mkdir html
+ -cd libvirt; \
+ ocamlfind ocamldoc $(OCAMLDOCFLAGS) -d ../html \
+ libvirt.{ml,mli} libvirt_version.{ml,mli}
+
+# Update configure and rerun.
+
+configure: force
+ autoreconf
+ CFLAGS=-g \
+ ./configure \
+ --enable-debug=yes --with-libvirt=/home/rjones/local
+
# Distribution.
dist:
@@ -58,22 +75,32 @@ dist:
ls -l $(PACKAGE)-$(VERSION).tar.gz
check-manifest:
- @for d in `find -type d -name CVS | grep -v '^\./debian/'`; \
- do \
- b=`dirname $$d`/; \
- awk -F/ '$$1 != "D" {print $$2}' $$d/Entries | \
- sed -e "s|^|$$b|" -e "s|^\./||"; \
- done | sort > .check-manifest; \
+ hg manifest | sort > .check-manifest; \
sort MANIFEST > .orig-manifest; \
diff -u .orig-manifest .check-manifest; rv=$$?; \
rm -f .orig-manifest .check-manifest; \
exit $$rv
-# Developer documentation (in html/ subdirectory).
+# Do a release (update the website).
-doc:
- rm -rf html
- mkdir html
- -cd libvirt; \
- ocamlfind ocamldoc $(OCAMLDOCFLAGS) -d ../html \
- libvirt.{ml,mli} libvirt_version.{ml,mli}
+release: configure
+ $(MAKE) release_stage_2
+
+release_stage_2: clean all opt doc dist
+ $(MAKE) release_stage_3
+
+WEBSITE = ../redhat/et-website
+
+release_stage_3:
+ rm -f $(WEBSITE)/ocaml-libvirt/html/*.{html,css}
+ cp html/*.{html,css} $(WEBSITE)/ocaml-libvirt/html/
+ cp $(PACKAGE)-$(VERSION).tar.gz $(WEBSITE)/ocaml-libvirt/
+ cp README $(WEBSITE)/ocaml-libvirt/README.txt
+ cp ChangeLog $(WEBSITE)/ocaml-libvirt/ChangeLog.txt
+ cp virt-top/virt-top.txt $(WEBSITE)/virt-top/
+ cp ChangeLog $(WEBSITE)/virt-top/ChangeLog.txt
+
+force:
+
+.PHONY: all opt depend install clean distclean configure dist check-manifest \
+ release release_stage_2 release_stage_3 force \ No newline at end of file