debian/rules
changeset 41 7a69721f5d25
parent 0 e05dded1b622
child 44 3d3135992e11
equal deleted inserted replaced
40:297b304e1073 41:7a69721f5d25
     3 # GNU copyright 1997 to 1999 by Joey Hess.
     3 # GNU copyright 1997 to 1999 by Joey Hess.
     4 
     4 
     5 # Uncomment this to turn on verbose mode.
     5 # Uncomment this to turn on verbose mode.
     6 #export DH_VERBOSE=1
     6 #export DH_VERBOSE=1
     7 
     7 
     8 # This is the debhelper compatibility version to use.
     8 %:	
     9 export DH_COMPAT=3
     9 	dh $@
    10 
    10 
       
    11 override_dh_auto_build:
       
    12 	$(MAKE) prefix=/usr
    11 
    13 
       
    14 override_dh_auto_install:
       
    15 	$(MAKE) prefix=/usr DESTDIR=debian/logbuch install
    12 
    16 
    13 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
    17 #-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
    14 	CFLAGS += -g
    18 #-	CFLAGS += -g
    15 endif
    19 #-endif
    16 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
    20 #-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
    17 	INSTALL_PROGRAM += -s
    21 #-	INSTALL_PROGRAM += -s
    18 endif
    22 #-endif
    19 
    23 #-
    20 configure: configure-stamp
    24 #-configure: configure-stamp
    21 configure-stamp:
    25 #-configure-stamp:
    22 	dh_testdir
    26 #-	dh_testdir
    23 	# Add here commands to configure the package.
    27 #-	# Add here commands to configure the package.
    24 
    28 #-
    25 	touch configure-stamp
    29 #-	touch configure-stamp
    26 
    30 #-
    27 
    31 #-
    28 build: build-stamp
    32 #-build: build-stamp
    29 
    33 #-
    30 build-stamp: configure-stamp 
    34 #-build-stamp: configure-stamp 
    31 	dh_testdir
    35 #-	dh_testdir
    32 
    36 #-
    33 	# Add here commands to compile the package.
    37 #-	# Add here commands to compile the package.
    34 	$(MAKE) prefix=/usr
    38 #-	$(MAKE) prefix=/usr
    35 	#/usr/bin/docbook-to-man debian/logbuch.sgml > logbuch.1
    39 #-	#/usr/bin/docbook-to-man debian/logbuch.sgml > logbuch.1
    36 
    40 #-
    37 	touch build-stamp
    41 #-	touch build-stamp
    38 
    42 #-
    39 clean:
    43 #-clean:
    40 	dh_testdir
    44 #-	dh_testdir
    41 	dh_testroot
    45 #-	dh_testroot
    42 	rm -f build-stamp configure-stamp
    46 #-	rm -f build-stamp configure-stamp
    43 
    47 #-
    44 	# Add here commands to clean up after the build process.
    48 #-	# Add here commands to clean up after the build process.
    45 	-$(MAKE) clean
    49 #-	-$(MAKE) clean
    46 
    50 #-
    47 	dh_clean
    51 #-	dh_clean
    48 
    52 #-
    49 install: build
    53 #-install: build
    50 	dh_testdir
    54 #-	dh_testdir
    51 	dh_testroot
    55 #-	dh_testroot
    52 	dh_clean -k
    56 #-	dh_clean -k
    53 	dh_installdirs
    57 #-	dh_installdirs
    54 
    58 #-
    55 	# Add here commands to install the package into debian/logbuch.
    59 #-	# Add here commands to install the package into debian/logbuch.
    56 	$(MAKE) install DESTDIR=debian/logbuch prefix=/usr
    60 #-	$(MAKE) install DESTDIR=debian/logbuch prefix=/usr
    57 
    61 #-
    58 
    62 #-
    59 # Build architecture-independent files here.
    63 #-# Build architecture-independent files here.
    60 binary-indep: build install
    64 #-binary-indep: build install
    61 # We have nothing to do by default.
    65 #-# We have nothing to do by default.
    62 
    66 #-
    63 # Build architecture-dependent files here.
    67 #-# Build architecture-dependent files here.
    64 binary-arch: build install
    68 #-binary-arch: build install
    65 	dh_testdir
    69 #-	dh_testdir
    66 	dh_testroot
    70 #-	dh_testroot
    67 #	dh_installdebconf	
    71 #-#	dh_installdebconf	
    68 	dh_installdocs
    72 #-	dh_installdocs
    69 #	dh_installexamples
    73 #-#	dh_installexamples
    70 #	dh_installmenu
    74 #-#	dh_installmenu
    71 #	dh_installlogrotate
    75 #-#	dh_installlogrotate
    72 #	dh_installemacsen
    76 #-#	dh_installemacsen
    73 #	dh_installpam
    77 #-#	dh_installpam
    74 #	dh_installmime
    78 #-#	dh_installmime
    75 #	dh_installinit
    79 #-#	dh_installinit
    76 #	dh_installcron
    80 #-#	dh_installcron
    77 #	dh_installman
    81 #-#	dh_installman
    78 #	dh_installinfo
    82 #-#	dh_installinfo
    79 #	dh_undocumented
    83 #-#	dh_undocumented
    80 	dh_installchangelogs 
    84 #-	dh_installchangelogs 
    81 #	dh_link
    85 #-#	dh_link
    82 #	dh_strip
    86 #-#	dh_strip
    83 #	dh_compress
    87 #-#	dh_compress
    84 #	dh_fixperms
    88 #-#	dh_fixperms
    85 #	dh_makeshlibs
    89 #-#	dh_makeshlibs
    86 	dh_installdeb
    90 #-	dh_installdeb
    87 	dh_perl
    91 #-	dh_perl
    88 #	dh_shlibdeps
    92 #-#	dh_shlibdeps
    89 	dh_gencontrol
    93 #-	dh_gencontrol
    90 	dh_md5sums
    94 #-	dh_md5sums
    91 	dh_builddeb
    95 #-	dh_builddeb
    92 
    96 #-
    93 binary: binary-indep binary-arch
    97 #-binary: binary-indep binary-arch
    94 .PHONY: build clean binary-indep binary-arch binary install configure
    98 #-.PHONY: build clean binary-indep binary-arch binary install configure