Search
j0ke.net Open Build Service
>
Projects
>
GFS
:
experimental
>
openais
> debian.rules
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File debian.rules of Package openais (Revision 1)
Currently displaying revision
1
,
show latest
#!/usr/bin/make -f # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p') VERSION := $(shell dpkg-parsechangelog | perl -ne '/^Version:\s+(\S+)-[^-]+$$/ && print $$1;') BUILD_DIR = debian/build STAMPS_DIR = debian/stamps export OPENAIS_BUILD=$(if $(findstring debug,$(DEB_BUILD_OPTIONS)),DEBUG) setup: $(STAMPS_DIR)/setup $(STAMPS_DIR)/setup: SOURCE_FILES = $(filter-out debian, $(wildcard * .[^.]*)) $(STAMPS_DIR)/setup: DIR = $(BUILD_DIR)/build $(STAMPS_DIR)/setup: @[ -d $(BUILD_DIR) ] || mkdir $(BUILD_DIR) @[ -d $(STAMPS_DIR) ] || mkdir $(STAMPS_DIR) dh_testdir @rm -rf $(DIR) mkdir $(DIR) cp -a $(SOURCE_FILES) $(DIR) dpatch -d $(DIR) apply-all touch $@ build: $(STAMPS_DIR)/build $(STAMPS_DIR)/build: DIR = $(BUILD_DIR)/build $(STAMPS_DIR)/build: $(STAMPS_DIR)/setup dh_testdir $(MAKE) -C $(DIR) LIBDIR=/usr/lib/openais LCRSODIR=/usr/lib/openais/lcrso PREFIX=/usr touch $@ clean: dh_testdir rm -rf $(BUILD_DIR) $(STAMPS_DIR) dh_clean maintainerclean: rm -rf $(filter-out .svn debian, $(wildcard * .[^.]*)) install: DIR = $(BUILD_DIR)/build install: $(STAMPS_DIR)/build dh_testdir dh_testroot dh_clean -k $(MAKE) -C $(DIR) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/tmp/ LIBDIR=/usr/lib/openais LCRSODIR=/usr/lib/openais/lcrso STATICLIBS=YES dh_install --sourcedir=debian/tmp dh_installchangelogs CHANGELOG dh_installdirs dh_installdocs dh_installexamples dh_installinit -p openais -- start 59 S . start 7 0 6 . dh_installlogrotate dh_strip ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/openais/usr/lib/openais/lcrso/* endif dh_compress chmod 644 debian/openais/usr/lib/openais/lcrso/*.lcrso dh_fixperms dh_installdeb dh_makeshlibs -V dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary-arch: install binary-indep: binary: binary-arch binary-indep DIR_ORIG = ../orig/$(SOURCE)-$(VERSION) TAR_ORIG = ../$(SOURCE)_$(VERSION).orig.tar.gz orig: $(DIR_ORIG) rsync --delete --exclude debian --exclude .svn --link-dest=$(DIR_ORIG)/ -a $(DIR_ORIG)/ . $(DIR_ORIG): @[ -e $(TAR_ORIG) ] || ( echo "Can't find orig tarball" >&2; exit 1 ) mkdir -p ../orig tar -C ../orig -xzf $(TAR_ORIG) # This is to make dpatch-edit-patch work unpatch: clean