summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
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