[Debian-arabic-packages] [svn] r164 - pkg/xfardic/trunk/debian

Alan Baghumian alanbach-guest at alioth.debian.org
Wed Jan 30 15:42:23 UTC 2008


Author: alanbach-guest
Date: Wed Jan 30 15:42:23 2008
New Revision: 164

Log:
* Updated the rules file to work correctly

Modified:
   pkg/xfardic/trunk/debian/rules

Modified: pkg/xfardic/trunk/debian/rules
==============================================================================
--- pkg/xfardic/trunk/debian/rules	(original)
+++ pkg/xfardic/trunk/debian/rules	Wed Jan 30 15:42:23 2008
@@ -1,17 +1,5 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-
-# 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)
 
@@ -34,23 +22,31 @@
 		quilt --quiltrc /dev/null push -a || test $$? = 2
 	touch $@
 
-build: build-stamp
-
-build-stamp:
+configure: configure-stamp
+configure-stamp: patch-stamp
 	dh_testdir
-	dh_clean
 	CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+	touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+	dh_testdir
 	$(MAKE)
 	touch build-stamp
 
 clean:
 	dh_testdir
 	dh_testroot
+	# unapply patches, if any
+	QUILT_PATCHES=$(PATCH_DIR) \
+		quilt --quiltrc /dev/null pop -a -R || test $$? = 2
+	-rm -rf .pc
+	rm -f install-stamp build-stamp configure-stamp patch-stamp
 	rm -f build-stamp
 	rm -rf config.cache
 	dh_clean	
 	
-install: build
+install: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k 
@@ -79,4 +75,4 @@
 	dh_builddeb	
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+.PHONY: patch build clean binary-indep binary-arch binary install 



More information about the Debian-arabic-packages mailing list