summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-29 15:44:44 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-29 15:44:44 +0200
commitb18f5bf2db0fba2e7e539f68645836036d940d26 (patch)
tree23c4dd8f3d273f34ef9bbe1799d1958685559915 /Makefile.am
parenta7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (diff)
Imported Upstream version 2.9.6upstream/2.9.6
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am19
1 files changed, 13 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 0c3af55..594eac6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,24 +5,29 @@ SOURCEDIR = $(PKGDIR)/SOURCES
BUILDDIR = $(PKGDIR)/BUILD
RSPEC = doc/$(PACKAGE).spec
PNAME = $(PACKAGE)-$(VERSION)
-TMPDIR = /var/tmp/$(PNAME)
+TARDIR = /tmp/iu
+TMPDIR = $(TARDIR)/$(PNAME)
BDIR = $(TMPDIR)-1-root
RPMB = rpmbuild
# $(RPMB) -bb --buildroot $(BDIR) $(RSPEC)
+# Note: put files here, until lib/Makefile.am supports
+# pkg-config support rules
+# if WITH_PKG_CONFIG
+ # pkgconfig_DATA = lib/libipmiutil.pc
+# endif
+
rpm: $(RSPEC)
make tarball
+ cp -f $(TARDIR)/$(PNAME).tar.gz $(SOURCEDIR)
$(RPMB) -bb $(RSPEC)
$(RPMB) -bs $(RSPEC)
tarball:
- rm -f $(SOURCEDIR)/$(PNAME).tar.gz
+ rm -f $(TMPDIR)/../$(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 ..
@@ -31,8 +36,10 @@ tarball:
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)
+ cd $(TMPDIR); cd ..; tar -czvf $(TARDIR)/$(PNAME).tar.gz $(PNAME)
+ ls $(TARDIR)/*.gz
rm -rf $(TMPDIR)
+# chown -R root:root $(TMPDIR)
tarsol: util/ipmiutil
rm -f /tmp/$(PNAME)-solaris.tar