/[gnue]/gnue-designer/packaging/debian/rules
ViewVC logotype

Diff of /gnue-designer/packaging/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jcater, Thu Oct 10 06:45:35 2002 UTC revision 1.3 by jbailey, Mon Oct 6 00:41:19 2003 UTC
# Line 1  Line 1 
1  #!/usr/bin/make -f  #!/usr/bin/make -f
2  # Made with the aid of dh_make, by Craig Small  # Copyright (c) 2003 Jeff Bailey
3  # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.  # This Makefile is in the public domain
 # Also some stuff taken from debmake scripts, by Cristopt Lameter.  
4    
5  # Uncomment this to turn on verbose mode.  # Uncomment this to turn on verbose mode.
6  #export DH_VERBOSE=1  #export DH_VERBOSE=1
7    
8  export GNUEDIR=/usr/lib/gnue  include /usr/share/cdbs/1/rules/debhelper.mk
9  export GNUEBINDIR=/usr/bin  include /usr/share/cdbs/1/class/python-distutils.mk
 export GNUEVARDIR=/var/lib/gnue  
 export GNUEETCDIR=/etc/gnue  
 export GNUESHAREDIR=/usr/lib/share/gnue  
 export GNUEDOCDIR=/usr/lib/share/doc/gnue-designer  
10    
11  python  = python  DEB_INSTALL_PYTHON_gnue-designer = /usr/lib/gnue/python/gnue/designer
 d       = debian/tmp  
   
 build: build-stamp  
 build-stamp:  
         dh_testdir  
         $(python) setup.py install --skip-tests --cfg-file $(GNUEDIR)/site.cfg  
         touch build-stamp  
   
 clean:  
         dh_testdir  
         dh_testroot  
         rm -f build-stamp install-stamp  
   
 #       -$(MAKE) -C lib/python clean  
 #       -$(MAKE) -C lib/python/gnue clean  
 #       -$(MAKE) -C lib/python/gnue/common clean  
         find . -regex ".+\.pyc" -o -regex ".+\.so" -o -regex ".+\.o" \  
                 | xargs rm -f  
         find lib/python -name Makefile -o -name Makefile.pre \  
                 -o -name Makefile.pre.in \  
                 -o -name sedscript -o -name config.c \  
                 | xargs rm -f  
         rm -f setup.cfg  
         rm -rf stage  
         rm -rf build  
         dh_clean  
   
 install: install-stamp  
 install-stamp: build-stamp  
         dh_testdir  
         dh_testroot  
         dh_clean -k  
         dh_installdirs  
   
         # Installing GNUe's lib/python in the $(d) area  
         install -d $(d)$(GNUEDIR)/lib/python/gnue  
         cp -a stage/lib/python/gnue/designer $(d)$(GNUEDIR)/lib/python/gnue/designer  
   
         # ..scripts  
         install -d $(d)$(GNUEBINDIR)/  
         cp -a stage/bin/* $(d)$(GNUEBINDIR)/  
   
         # ..docs  
         install -d $(d)$(GNUEDOCDIR)/  
 ##      cp -a doc/*.txt $(d)$(GNUEDOCDIR)/  
 ##      cp -a doc/*.html $(d)$(GNUEDOCDIR)/  
   
   
         # We don't need those relicts from building GNUe  
         ind $(d)$(GNUEDIR) -name .cvsignore \  
                 | xargs rm -f  
   
         find $(d)$(GNUEDIR) -name "Makefile.*" \  
                 -o -regex ".+\.[cho]" -o -regex ".+\.pyc" \  
                 -o -name setup.cfg -o -name setup.cfg.in \  
                 | xargs rm -f  
   
   
         : # Replace all '#!' calls to python with $(python)  
         : # and make them executable  
         cd debian && \  
         for i in `find tmp/$(GNUEBINDIR) -type f`; do \  
           sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/$(python)\1,' \  
                 $$i > $$i.temp; \  
           if cmp --quiet $$i $$i.temp; then \  
             rm -f $$i.temp; \  
           else \  
             cat $$i.temp |sed "s,'stage,'/usr/lib/gnue,"|sed "s,'/usr/lib/gnue/etc/connections.conf','/etc/gnue/connections.conf'," > $$i;  \  
             rm -f $$i.temp; \  
             chmod 755 $$i; \  
             echo "fixed interpreter: $$i"; \  
           fi; \  
         done  
   
         touch install-stamp  
   
 # Build architecture-independent files here.  
 binary-indep: build install  
 # We have nothing to do by default.  
   
 # Build architecture-dependent files here.  
 binary-arch: build install  
 #       dh_testversion  
         dh_testdir  
         dh_testroot  
         ##rm -f debian/*.debhelper  
         dh_installdocs README* debian/README*  \  
            doc/*.txt \  
 ##         doc/*.html  
 #       dh_installmenu  
 #       dh_installemacsen  
 #       dh_installpam  
 #       dh_installinit  
 #       dh_installcron  
         dh_installmanpages  
 #       dh_undocumented  
 #       cat doc/CHANGES.txt doc/HISTORY.txt >ChangeLog  
         dh_installchangelogs ChangeLog  
         dh_link  
         dh_strip  
         dh_compress -X.zexp  
         dh_fixperms  
 #       dh_makeshlibs  
         dh_installdeb  
         dh_shlibdeps  
         dh_gencontrol  
         dh_md5sums  
         dh_builddeb  
   
 source diff:  
         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false  
   
 binary: binary-indep binary-arch  
 .PHONY: build clean binary-indep binary-arch binary install  

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26