This commit was manufactured by cvs2svn to create branch
[mom.git] / Makefile
index 9b75c7f..06048a0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,23 @@
+# @COPYRIGHT@
 #
-# pl_mom suite of node monitors
-#
-# Mark Huang <mlhuang@cs.princeton.edu>
-# Copyright (C) 2006 The Trustees of Princeton University
-#
-# $Id$
-#
+# $Id: Makefile,v 1.2 2004/11/17 20:24:11 acb Exp $
+
+BASE=pl_mom
+VERSION=0.3
+TARFILE=$(BASE)-$(VERSION).tgz
+
+all: pl_mom.pl pl_mom
 
-ALL := leak
+install:
+       install -D -m 755 pl_mom.pl     /usr/local/planetlab/bin/pl_mom.pl
+       install -D -m 755 pl_mom        /etc/init.d/pl_mom
 
-CC := gcc
-CFLAGS := -Wall -O2
+tarball:
+       rm -f $(TARFILE)
+       tar cvfz $(TARFILE) -C .. --exclude=CVS $(BASE)-$(VERSION)
 
-all: $(ALL)
+rpm::  tarball
+       sudo cp $(TARFILE) /usr/src/redhat/SOURCES
+       sudo rpmbuild -ba $(BASE).spec
 
-clean:
-       rm -f $(ALL)
 
-.PHONY: all clean