* Move the cpulimt binary from /usr/sbin to /usr/bin in accordance with the FHS
[debian/cpulimit.git] / debian / rules
index 46627dd..7fea5cf 100755 (executable)
@@ -10,8 +10,6 @@
 #export DH_VERBOSE=1
 
 
 #export DH_VERBOSE=1
 
 
-
-
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -23,7 +21,6 @@ endif
 configure: configure-stamp
 configure-stamp:
        dh_testdir
 configure: configure-stamp
 configure-stamp:
        dh_testdir
-       # Add here commands to configure the package.
 
        touch configure-stamp
 
 
        touch configure-stamp
 
@@ -42,7 +39,7 @@ clean:
        dh_testroot
        rm -f build-stamp configure-stamp
 
        dh_testroot
        rm -f build-stamp configure-stamp
 
-       -$(MAKE) clean
+       [ ! -f Makefile ] || $(MAKE) clean
 
        dh_clean 
 
 
        dh_clean 
 
@@ -52,13 +49,12 @@ install: build
        dh_clean -k 
        dh_installdirs
 
        dh_clean -k 
        dh_installdirs
 
-       # Add here commands to install the package into debian/cpulimit.
        install cpulimit $(CURDIR)/debian/cpulimit/usr/bin
 
 
 # Build architecture-independent files here.
 binary-indep: build install
        install cpulimit $(CURDIR)/debian/cpulimit/usr/bin
 
 
 # Build architecture-independent files here.
 binary-indep: build install
-# We have nothing to do by default.
+# We have nothing to do.
 
 # Build architecture-dependent files here.
 binary-arch: build install
 
 # Build architecture-dependent files here.
 binary-arch: build install