X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Frules;h=6f5373c53d55f99ba0d9ba4a1420adaf241c867e;hb=845e391687bd1f5956039b329aae3e8fe82aa694;hp=c6b78b5bd947541366c616759328efe09290ce57;hpb=5ae19c052d638b9e8233ea34e485dfa44af41d68;p=pkg%2Fmmv.git diff --git a/debian/rules b/debian/rules index c6b78b5..6f5373c 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,7 @@ CC = gcc LDFLAGS = -s +CFLAGS = -O2 -g -Wall # The package p = mmv @@ -15,15 +16,15 @@ dir = `pwd` build: # Builds the binary package. $(checkdir) - make CC="$(CC)" LDFLAGS="$(LDFLAGS)" + make CC="$(CC)" LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" touch build clean: # Undoes the effect of `make -f debian/rules build'. $(checkdir) - make clean - /bin/rm -f debian/files* debian/substvars* - /bin/rm -rf debian/tmp build + -make clean + -rm -f debian/files* debian/substvars* debian/*~ + -rm -rf debian/tmp build binary: binary-arch binary-indep @@ -64,6 +65,7 @@ binary-arch: build chown -R root.root debian/tmp/usr/doc/$(p) dpkg-shlibdeps debian/tmp/usr/bin/mmv dpkg-gencontrol + dh_md5sums dpkg --build debian/tmp && dpkg-name -o -s .. debian/tmp.deb define checkdir