diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-02-05 09:54:11 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-02-05 09:54:11 -0800 |
commit | e1971e4774a6ebb5ed33a09bdd60afa2c0534b6f (patch) | |
tree | f4fc5aaccb4d9dac43ae7a825df9006532c1a059 /Makefile.am | |
download | vyatta-biosdevname-e1971e4774a6ebb5ed33a09bdd60afa2c0534b6f.tar.gz vyatta-biosdevname-e1971e4774a6ebb5ed33a09bdd60afa2c0534b6f.zip |
Initial commit.debian/0.1
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..80548a8 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,43 @@ +AUTOMAKE_OPTIONS = subdir-objects +SUBDIRS = + +dist_noinst_DATA = biosdevname.rules.in biosdevname.spec.fedora biosdevname.spec.suse biosdevname.1 + +CLEANFILES = biosdevname.rules version +biosdevname.rules: biosdevname.rules.in + sed -e 's#/usr/sbin#$(sbindir)#' $(top_srcdir)/biosdevname.rules.in > $(top_builddir)/biosdevname.rules + +install-data-local: biosdevname.rules + mkdir -p $(DESTDIR)@sysconfdir@/udev/rules.d + $(INSTALL_DATA) $(top_builddir)/biosdevname.rules $(DESTDIR)@sysconfdir@/udev/rules.d/@RULEDEST@ + +include src/Makefile.am + +# extra space at beginning to work around automake... :( + ifndef SPEC_FILE + SPEC_FILE=biosdevname.spec.fedora + endif +rpm: dist + mkdir -p dist/{SOURCES,BUILD,RPMS,SRPMS,SPECS} + cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz dist/SOURCES + cp $(SPEC_FILE) dist/SPECS/@PACKAGE_NAME@.spec + rpmbuild --define "_topdir $$PWD/dist" -ba --nodeps dist/SPECS/@PACKAGE_NAME@.spec ; + rm -rf dist/{SOURCES,BUILD,SPECS} + +srpm: dist + mkdir -p dist/{SOURCES,BUILD,RPMS,SRPMS,SPECS} + cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz dist/SOURCES + cp $(SPEC_FILE) dist/SPECS/@PACKAGE_NAME@.spec + rpmbuild --define "_topdir $$PWD/dist" -bs --nodeps dist/SPECS/@PACKAGE_NAME@.spec ; + rm -rf dist/{SOURCES,BUILD,SPECS} + +deb: dist + oldpwd=`pwd` ; \ + tmp_dir=`mktemp -d /tmp/$(PACKAGE_NAME).XXXXXXXX` ; \ + cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $${tmpdir}/$(PACKAGE_NAME)_$(PACKAGE_VERSION).orig.tar.gz \ + tar -C $${tmp_dir} -xzf $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz ; \ + mv $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/pkg/debian $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/debian ; \ + cd $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION) ; \ + pdebuild --buildresult $$oldpwd/.. ; \ + cd - ;\ + rm -rf $${tmp_dir} |