summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
commita7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch)
tree41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /Makefile.am
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am60
1 files changed, 60 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..0c3af55
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,60 @@
+
+SUBDIRS = @SUBDIR_S@
+PKGDIR = @PKG_DIR@
+SOURCEDIR = $(PKGDIR)/SOURCES
+BUILDDIR = $(PKGDIR)/BUILD
+RSPEC = doc/$(PACKAGE).spec
+PNAME = $(PACKAGE)-$(VERSION)
+TMPDIR = /var/tmp/$(PNAME)
+BDIR = $(TMPDIR)-1-root
+RPMB = rpmbuild
+# $(RPMB) -bb --buildroot $(BDIR) $(RSPEC)
+
+rpm: $(RSPEC)
+ make tarball
+ $(RPMB) -bb $(RSPEC)
+ $(RPMB) -bs $(RSPEC)
+
+tarball:
+ rm -f $(SOURCEDIR)/$(PNAME).tar.gz
+ rm -rf $(TMPDIR)
+ mkdir -p $(TMPDIR)
+ mkdir -p $(SOURCEDIR)
+ find . -print | cpio -pdumv $(TMPDIR)
+ chown -R root $(TMPDIR)
+ chgrp -R root $(TMPDIR)
+ rm -f $(TMPDIR)/lib/libipmiapi*.a*
+ cd $(TMPDIR)/test; make clean; cd ..
+ cd $(TMPDIR)/hpiutil; make clean; cd ..
+ cd $(TMPDIR); make distclean
+ cd $(TMPDIR); rm -rf autom4te.cache
+ cd $(TMPDIR); rm -f util/events
+ cd $(TMPDIR); sed -i 's/\r//' ChangeLog AUTHORS COPYING NEWS README TODO doc/UserGuide
+ cd $(TMPDIR); chmod 644 doc/UserGuide
+ cd $(TMPDIR); cd ..; tar -czvf $(SOURCEDIR)/$(PNAME).tar.gz $(PNAME)
+ rm -rf $(TMPDIR)
+
+tarsol: util/ipmiutil
+ rm -f /tmp/$(PNAME)-solaris.tar
+ rm -rf $(TMPDIR)
+ mkdir -p $(TMPDIR)
+ cd util; cp ipmiutil idiscover ievents ipmi_port $(TMPDIR)
+ cd doc; cp UserGuide *.8 *.mib $(TMPDIR)
+ cd scripts; cp checksel ipmiutil_??? *.sh $(TMPDIR)
+ cd $(TMPDIR); mv install-solaris.sh install.sh
+ cd $(TMPDIR); tar cvf /tmp/$(PNAME)-solaris.tar .
+ rm -rf $(TMPDIR)
+
+tarbsd: util/ipmiutil
+ rm -f /tmp/$(PNAME)-bsd.tar
+ rm -rf $(TMPDIR)
+ mkdir -p $(TMPDIR)
+ cd util; cp ipmiutil idiscover ievents ipmi_port $(TMPDIR)
+ cd doc; cp UserGuide *.8 *.mib $(TMPDIR)
+ cd scripts; cp checksel ipmiutil_??? *.sh $(TMPDIR)
+ cd $(TMPDIR); mv install-solaris.sh install.sh
+ cd $(TMPDIR); tar -cvf /tmp/$(PNAME)-bsd.tar .
+ rm -rf $(TMPDIR)
+
+clean-generic:
+ rm -f *.log *.tmp debug*.list