diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-11-12 17:25:25 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-11-12 17:25:25 +0100 |
commit | 14304e0827cd7de7fc55b1ba587ccdd380525b94 (patch) | |
tree | f70c126b91e68b66d7005cfea53b88a82aa0c7fa /Makefile.am-new | |
parent | d279e229635f19852dc829552aa7c7d72d7a4dd2 (diff) |
New upstream release
Diffstat (limited to 'Makefile.am-new')
-rw-r--r-- | Makefile.am-new | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Makefile.am-new b/Makefile.am-new new file mode 100644 index 0000000..24301e9 --- /dev/null +++ b/Makefile.am-new @@ -0,0 +1,68 @@ + +SUBDIRS = @SUBDIR_S@ +PKGDIR = @PKG_DIR@ +SOURCEDIR = $(PKGDIR)/SOURCES +BUILDDIR = $(PKGDIR)/BUILD +RSPEC = doc/$(PACKAGE).spec +PNAME = $(PACKAGE)-$(VERSION) +# TMPDIR = /var/tmp/$(PNAME) +TMPD = $(shell mktemp -d -t ${PNAME}.XXXXXX) +TMPDIR = $(TMPD)/${PNAME} +BDIR = $(TMPDIR)-1-root +RPMB = rpmbuild +# $(RPMB) -bb --buildroot $(BDIR) $(RSPEC) + +# Note: put files here, while waiting for a proper lib/Makefile.am +# pkg-config support rules +# if WITH_PKG_CONFIG + # pkgconfig_DATA = lib/libipmiutil.pc +# endif + +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) + echo "TMPDIR=$(TMPDIR)" + find . -print | cpio -pdumv $(TMPDIR) + rm -f $(TMPDIR)/lib/libipmiapi*.a* $(TMPDIR)/util/events + cd $(TMPDIR)/test; make clean; cd .. + cd $(TMPDIR)/hpiutil; make clean; cd .. + echo "TMPDIR=$(TMPDIR)" + cd $(TMPDIR); make distclean + cd $(TMPDIR); rm -rf autom4te.cache + cd $(TMPDIR); sed -i 's/\r//' ChangeLog AUTHORS COPYING NEWS README TODO doc/UserGuide + cd $(TMPDIR); chmod 644 doc/UserGuide + cd $(TMPDIR)/..; tar -czvf $(SOURCEDIR)/$(PNAME).tar.gz $(PNAME) + rm -rf $(TMPDIR) +# chown -R root:root $(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 |