You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by da...@apache.org on 2005/03/23 22:07:37 UTC

cvs commit: tcl-rivet/debian rules

davidw      2005/03/23 13:07:37

  Modified:    debian   rules
  Log:
  Debian hackery.
  
  Revision  Changes    Path
  1.7       +51 -42    tcl-rivet/debian/rules
  
  Index: rules
  ===================================================================
  RCS file: /home/cvs/tcl-rivet/debian/rules,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- rules	30 Aug 2003 13:53:10 -0000	1.6
  +++ rules	23 Mar 2005 21:07:37 -0000	1.7
  @@ -6,56 +6,65 @@
   
   package=rivet
   
  -configs.tcl:
  -	( cd src ; tclsh$(TCL_VERSION) ./configure.tcl )
  -
  -build: configs.tcl
  -	$(checkdir)
  -	( cd src ; ./make.tcl shared )
  -	touch build
  +configure: configure-stamp
  +configure-stamp:
  +	dh_testdir
  +	./configure --with-tcl=/usr/lib/tcl$(TCLVERSION)/ --with-apxs=/usr/bin/apxs --enable-threads  --with-tcl=/usr/bin/tclsh$(TCL_VERSION)
  +	touch configure-stamp
  +
  +build: build-stamp
  +
  +build-stamp: configure-stamp
  +	dh_testdir
  +	$(MAKE)
  +	touch build-stamp
   
   clean:
  -	$(checkdir)
  -	-rm -f build
  -	( cd src ; rm -f *.so *.o *.a )
  -	-rm -f `find . -name "*~"`
  -	-rm -rf debian/tmp debian/files* core debian/substvars
  -
  -binary-indep: checkroot build
  -	$(checkdir)
  -# There are no architecture-independent files to be uploaded
  -# generated by this package.  If there were any they would be
  -# made here.
  -
  -binary-arch: checkroot build
  -	$(checkdir)
  -	-rm -rf debian/tmp
  -	install -d debian/tmp
  -	cd debian/tmp && install -d `cat ../dirs`
  -	( cd src ; ./make.tcl install PREFIX=$(CURDIR)/debian/tmp/usr/lib LIBEXECDIR=$(CURDIR)/debian/tmp/usr/lib/apache/1.3/ )
  -	cp debian/500mod_rivet.info debian/tmp/usr/lib/apache/1.3/
  -	dh_installdocs doc/
  -	dh_installchangelogs
  -	dh_movefiles
  +	dh_testdir
  +	dh_testroot
  +	rm -f build-stamp configure-stamp
  +	-$(MAKE) clean
  +	dh_clean
  +
  +install: build
  +	dh_testdir
  +	dh_testroot
  +	dh_clean -k
  +	dh_installdirs
  +	$(MAKE) install DESTDIR=$(CURDIR)/debian/rivet
  +
  +binary-indep: build install
  +
  +# Build architecture-dependent files here.
  +binary-arch: build install
  +	dh_testdir
  +	dh_testroot
  +	dh_installchangelogs ChangeLog
  +	dh_installdocs doc/*
  +	dh_installexamples
  +#	dh_install
  +#	dh_installmenu
  +#	dh_installdebconf
  +#	dh_installlogrotate
  +#	dh_installemacsen
  +#	dh_installpam
  +#	dh_installmime
  +#	dh_installinit
  +#	dh_installcron
  +#	dh_installinfo
  +	dh_installman
  +	dh_link
   	dh_strip
   	dh_compress
   	dh_fixperms
  -	find debian/tmp/ -name CVS | xargs rm -rf
  +#	dh_perl
  +#	dh_python
  +	dh_makeshlibs
   	dh_installdeb
   	dh_shlibdeps
   	dh_gencontrol
  -	dh_makeshlibs
   	dh_md5sums
   	dh_builddeb
   
  -define checkdir
  -	test -f debian/rules
  -endef
  -
   binary: binary-indep binary-arch
  -
  -checkroot:
  -	$(checkdir)
  -	test root = "`whoami`"
  -
  -.PHONY: binary binary-arch binary-indep clean checkroot
  +.PHONY: build clean binary-indep binary-arch binary install configure
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-cvs-help@tcl.apache.org