debian/rules
changeset 70 391d82fcd42c
parent 16 2b2d175c2403
child 103 de27336a2273
equal deleted inserted replaced
69:b2b500fa75ba 70:391d82fcd42c
    13 
    13 
    14 configure: configure-stamp
    14 configure: configure-stamp
    15 configure-stamp:
    15 configure-stamp:
    16 	dh_testdir
    16 	dh_testdir
    17 	# Add here commands to configure the package.
    17 	# Add here commands to configure the package.
    18 	./configure --prefix=/usr
    18 	perl Build.PL --install-base=/usr
    19 	touch $@
    19 	touch $@
    20 
    20 
    21 
    21 
    22 build: build-stamp
    22 build: build-stamp
    23 
    23 
    24 build-stamp: configure-stamp  
    24 build-stamp: configure-stamp  
    25 	dh_testdir
    25 	dh_testdir
    26 
    26 
    27 	# Add here commands to compile the package.
    27 	# Add here commands to compile the package.
    28 	chmod +x ftbackup
    28 	./Build
    29 	#docbook-to-man debian/ftbackup.sgml > ftbackup.1
    29 	#docbook-to-man debian/ftbackup.sgml > ftbackup.1
    30 
    30 
    31 	touch $@
    31 	touch $@
    32 
    32 
    33 clean: 
    33 clean: 
    34 	dh_testdir
    34 	dh_testdir
    35 	dh_testroot
    35 	dh_testroot
    36 	rm -f build-stamp configure-stamp
    36 	rm -f build-stamp configure-stamp
    37 
    37 
    38 	# Add here commands to clean up after the build process.
    38 	# Add here commands to clean up after the build process.
    39 	-$(MAKE) distclean
    39 	-./Build distclean
    40 
    40 
    41 	dh_clean 
    41 	dh_clean 
    42 
    42 
    43 install: build
    43 install: build
    44 	dh_testdir
    44 	dh_testdir
    45 	dh_testroot
    45 	dh_testroot
    46 	dh_clean -k 
    46 	dh_clean -k 
    47 	dh_installdirs
    47 	dh_installdirs
    48 
    48 
    49 	# Add here commands to install the package into debian/ftbackup.
    49 	# Add here commands to install the package into debian/ftbackup.
    50 	$(MAKE) DESTDIR=$(CURDIR)/debian/ftbackup install
    50 	./Build --destdir=$(CURDIR)/debian/ftbackup install
    51 
    51 
    52 	install -d $(CURDIR)/debian/ftbackup/etc/ftbackup
    52 	install -d $(CURDIR)/debian/ftbackup/etc
    53 	install -m 0600 ftbackup.conf.example $(CURDIR)/debian/ftbackup/etc/ftbackup/default
    53 	install -m 0600 ftbackup.conf.example $(CURDIR)/debian/ftbackup/etc/ftbackup.conf
    54 
    54 
    55 # Build architecture-independent files here.
    55 # Build architecture-independent files here.
    56 binary-indep: build install
    56 binary-indep: build install
    57 # We have nothing to do by default.
    57 # We have nothing to do by default.
    58 
    58