]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - debian/rules
Imported Debian patch 2010.04.04-1
[youtubedl] / debian / rules
index 90317821b4125c2a77751a6dbe32b3537494aa58..70f28e15a73fe7bf0ae17510ce23a6b3bc06de4e 100755 (executable)
@@ -1,27 +1,28 @@
 #!/usr/bin/make -f
 
 #!/usr/bin/make -f
 
-build:
+build: build-stamp
+
+build-stamp:
+       pod2man -n YOUTUBE-DL -c "User Commands" debian/youtube-dl.pod > debian/youtube-dl.1
+       touch $@
 
 clean:
        dh_testdir
 
 clean:
        dh_testdir
-       dh_clean 
+       dh_clean build-stamp debian/youtube-dl.1
 
 install: build
        dh_testdir
        dh_testroot
        dh_clean -k 
 
 install: build
        dh_testdir
        dh_testroot
        dh_clean -k 
-       dh_installdirs
-
-       install -m 0755 $(CURDIR)/youtube-dl $(CURDIR)/debian/youtube-dl/usr/bin
+       dh_install
 
 
+binary-arch:
 binary-indep: build install
 binary-indep: build install
-
-binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs 
        dh_installdocs
        dh_testdir
        dh_testroot
        dh_installchangelogs 
        dh_installdocs
-       dh_installman $(CURDIR)/debian/youtube-dl.1
+       dh_installman debian/youtube-dl.1
        dh_compress
        dh_fixperms
        dh_installdeb
        dh_compress
        dh_fixperms
        dh_installdeb