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