Permalink
Browse files

Initial change to minimal debian/rules using dh command.

  • Loading branch information...
1 parent 1ab0e42 commit 6766d27a05414c020fc2cec1e3b4dda9fb34e53a @jame jame committed Mar 5, 2012
Showing with 2 additions and 80 deletions.
  1. +2 −80 debian/rules
View
82 debian/rules
@@ -8,86 +8,8 @@
# Set MBSE_ROOT to mbse installation directory.
export MBSE_ROOT=/opt/mbse
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+%:
+ dh $@ --with=autotools_dev
-CFLAGS = -Wall
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
-config.status: configure
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
- ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/opt/mbse CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
-
-
-build: build-stamp
-
-build-stamp: configure
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
-
- touch $@
-
-clean: cleanall unpatch
-cleanall:
- dh_testdir
- dh_testroot
- rm -f build-stamp
-
- # Add here commands to clean up after the build process.
- #$(MAKE) distclean # Should only be run if Makefile.global is present.
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- # Add here commands to install the package into debian/mbsebbs.
- # Note that most files are being installed using debian/install.
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs ChangeLog
- dh_installdocs
- dh_installexamples -XMakefile -Xinit. -X.in -XREADME -Xsetup.mbse script/* debian/examples/*
- dh_install -XMakefile -X.in
- dh_installmenu
- dh_installlogrotate
- dh_lintian
- dh_installinit
- dh_installman
- dh_usrlocal
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install patch unpatch

0 comments on commit 6766d27

Please sign in to comment.