Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.25 KB | None | 0 0
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Uncomment this to turn on verbose mode.
  4. export DH_VERBOSE=1
  5. package=sflvault-client
  6.  
  7. clean:
  8.     dh_testdir
  9.     dh_testroot
  10.     rm -f build-*
  11.     python setup.py clean
  12.     rm -rf build
  13.     find . -name '*\.py[co]' -delete
  14.     find . -name '\._*' -delete
  15.     find . -name '\.DS_Store' -delete
  16.     dh_clean
  17.  
  18. build-stamp:
  19.     dh_testdir
  20.     python setup.py build
  21.     touch $@
  22.  
  23. build: build-stamp
  24.  
  25. install: build
  26.     dh_testdir
  27.     dh_testroot
  28.     dh_clean -k
  29.     dh_installdirs
  30.     python setup.py install \
  31.         --no-compile \
  32.         --prefix=/usr \
  33.         --single-version-externally-managed \
  34.         --root $(CURDIR)/debian/$(package)
  35.  
  36. binary-indep: build install
  37.     dh_testdir
  38.     dh_testroot
  39.     #dh_installchangelogs CHANGELOG
  40.     dh_installdocs
  41.     dh_installexamples
  42.     dh_compress -X.py
  43.     dh_fixperms
  44.     dh_pysupport
  45.     find debian/$(package) -type f -perm 755 | xargs -r chmod 644
  46.     chmod 755 debian/${package}/usr/bin/sflvault
  47.     rm debian/${package}/usr/share/pyshared/sflvault/__init__.py
  48.     dh_installdeb
  49.     dh_gencontrol
  50.     dh_md5sums
  51.     dh_builddeb
  52.  
  53. binary-arch:
  54.  
  55. binary: binary-indep binary-arch
  56. .PHONY: build clean binary-indep binary-arch binary install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement