packages/gms-debian/rules
author renatofilho
Fri Feb 01 14:30:21 2008 +0000 (2008-02-01)
branchtrunk
changeset 905 d2d226b5a4bd
permissions -rwxr-xr-x
[svn r911] created release 0.7; moved debian dir to packages project
     1 #!/usr/bin/make -f
     2 # -*- makefile -*-
     3 
     4 # Uncomment this to turn on verbose mode.
     5 #export DH_VERBOSE=1
     6 
     7 PYVER=2.5
     8 PYTHON=python$(PYVER)
     9 
    10 PREFIX=debian/tmp
    11 
    12 build: build-stamp
    13 
    14 build-stamp:
    15 	touch build-stamp
    16 
    17 clean:
    18 	dh_testdir
    19 	dh_testroot
    20 	rm -f build-stamp
    21 	dh_clean
    22 
    23 install: build
    24 	dh_testdir
    25 	dh_testroot
    26 	dh_installdirs
    27 	dh_clean -k
    28 
    29 	@rm -rf build
    30 	@$(PYTHON) setup.py install --prefix=$(PREFIX)/usr --no-compile --install-purelib=$(PREFIX)/usr/share/gms
    31 	install -D -o root -g root -m 755 $(PREFIX)/usr/etc/init.d/gmsd  debian/$(cdbs_curpkg)/etc/init.d/gmsd
    32 	install -D -o root -g root -m 755 $(PREFIX)/usr/etc/gms/server.conf  debian/$(cdbs_curpkg)/etc/gms/server.conf
    33 
    34 	dh_install
    35 
    36 # Build architecture-independent files here.
    37 binary-indep: build install
    38 	dh_testdir
    39 	dh_testroot
    40 	dh_installchangelogs
    41 	dh_installdocs
    42 	dh_strip
    43 	dh_compress
    44 	dh_fixperms
    45 	dh_installdeb
    46 	dh_gencontrol
    47 	dh_md5sums
    48 	dh_builddeb
    49 
    50 binary: binary-indep
    51 .PHONY: clean binary-indep binary install
    52