/[gcl]/gcl/debian/rules
ViewVC logotype

Diff of /gcl/debian/rules

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

revision 1.35 by camm, Thu Feb 27 12:53:43 2003 UTC revision 1.36 by camm, Thu Feb 27 19:36:01 2003 UTC
# Line 10  Line 10 
10  #export DH_VERBOSE=1  #export DH_VERBOSE=1
11    
12  # This is the debhelper compatability version to use.  # This is the debhelper compatability version to use.
13  export DH_COMPAT=2  export DH_COMPAT=3
14  ARCHT:=$(shell dpkg --print-architecture)  ARCHT:=$(shell dpkg --print-architecture)
15    
16  MCC:=gcc  MCC:=gcc
# Line 49  ifeq ($(ARCHT),hppa) Line 49  ifeq ($(ARCHT),hppa)
49  DEBUG=--enable-debug  DEBUG=--enable-debug
50  endif  endif
51    
52  VERS=2.5.1  VERS=$(shell echo $$(cat majvers).$$(cat minvers))
   
 configure:  
53    
54  configure-%-stamp:  configure-%-stamp:
55    
# Line 91  configure-%-stamp: Line 89  configure-%-stamp:
89          touch $@          touch $@
90    
91    
 build:  
   
92  build-%-stamp: configure-%-stamp  build-%-stamp: configure-%-stamp
93          dh_testdir          dh_testdir
94    
95          $(MAKE)          $(MAKE)
96    
97            rm -rf debian/$*
98            mkdir -p debian/$*
99            $(MAKE) install DESTDIR=$$(pwd)/debian/$*
100    
101            mkdir -p debian/$*/usr/share/emacs/site-lisp
102            cp -a $$(find debian/$*/usr/local -name site-lisp -type d) \
103                    debian/$*/usr/share/emacs/site-lisp/gcl
104            rm -rf debian/$*/usr/local
105    
106            cat debian/$*/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp | \
107                    sed "s,$$(pwd)/debian/$*,,1" >debian/foo
108            mv debian/foo debian/$*/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp
109    
110            rm -f debian/$*/usr/bin/*.exe debian/$*/usr/bin/*.bat
111    
112            mkdir -p debian/$*/usr/include && \
113                    cd debian/$*/usr/include && \
114                    ln -snf $$(find ../lib -name "cmpinclude.h" ) .
115    
116            find debian/$* -type f -name "*.lsp" -exec chmod -x {} \;
117            find debian/$* -type f -name "*.lisp" -exec chmod -x {} \;
118            find debian/$* -type f -name "*.el" -exec chmod -x {} \;
119            find debian/$* -type f -name "*.tcl" -exec chmod -x {} \;
120    
121            touch $@
122    
123    bclean-stamp:
124            -$(MAKE) clean
125            touch $@
126    
127    ansi-test/test_results: build-ansi-stamp
128            $(MAKE) $@
129    
130    build: build-stamp
131    build-stamp: build-trad-stamp bclean-stamp build-ansi-stamp ansi-test/test_results
132          touch $@          touch $@
133    
134  clean:  clean:
# Line 108  clean: Line 139  clean:
139          -$(MAKE) clean          -$(MAKE) clean
140    
141          dh_clean          dh_clean
142            rm -rf debian/trad debian/ansi
143    
144    
145  BVER:=$(shell dpkg -s binutils |grep ^Version: | cut -f2 -d\  | cut -f1 -d\-)  BVER:=$(shell dpkg -s binutils |grep ^Version: | cut -f2 -d\  | cut -f1 -d\-)
146  debian/substvars:  debian/substvars:
147          grep -q ^binutils: $@ 2>/dev/null || echo "binutils:Version=$(BVER)" >> $@          grep -q ^binutils: $@ 2>/dev/null || echo "binutils:Version=$(BVER)" >> $@
148    
149  install-%-stamp: DH_OPTIONS=  install: install-stamp
150  install-%-stamp: build-%-stamp  install-stamp: build-stamp
   
         $(MAKE) install DESTDIR=$$(pwd)/debian/tmp  
   
         mkdir -p debian/tmp/usr/share/emacs/site-lisp  
         cp -a $$(find debian/tmp/usr/local -name site-lisp -type d) debian/tmp/usr/share/emacs/site-lisp/gcl  
         rm -rf debian/tmp/usr/local  
   
         cat debian/tmp/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp | \  
                 sed "s,$$(pwd)/debian/tmp,,1" >debian/foo  
         mv debian/foo debian/tmp/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp  
   
         rm -f debian/tmp/usr/bin/*.exe debian/tmp/usr/bin/*.bat  
   
         mkdir -p debian/tmp/usr/include && \  
                 cd debian/tmp/usr/include && \  
                 ln -snf $$(find ../lib -name "cmpinclude.h" ) .  
   
         find debian/tmp -type f -name "*.lsp" -exec chmod -x {} \;  
         find debian/tmp -type f -name "*.lisp" -exec chmod -x {} \;  
         find debian/tmp -type f -name "*.el" -exec chmod -x {} \;  
         find debian/tmp -type f -name "*.tcl" -exec chmod -x {} \;  
   
         dh_movefiles  
   
         touch $@  
   
 install-pre:  
151          dh_testdir          dh_testdir
152          dh_testroot          dh_testroot
153          dh_clean -k          dh_clean -k
154          dh_installdirs          dh_installdirs
155    
156  gclean:          cp -a debian/trad/* debian/tmp/
157          $(MAKE) clean          cp -a debian/ansi/* debian/tmp/
         rm *stamp  
158    
 install: install-pre install-trad-stamp gclean install-ansi-stamp  
159          cat debian/gcl.sh | sed "s,gcl/,/usr/lib/gcl-$(VERS)/,g" >debian/gcl/usr/bin/gcl          cat debian/gcl.sh | sed "s,gcl/,/usr/lib/gcl-$(VERS)/,g" >debian/gcl/usr/bin/gcl
160          chmod 0755 debian/gcl/usr/bin/gcl          chmod 0755 debian/gcl/usr/bin/gcl
161    
162            dh_movefiles
163    
164            touch $@
165    
166  # Build architecture-independent files here.  # Build architecture-independent files here.
167  # Pass -i to all debhelper commands in this target to reduce clutter.  # Pass -i to all debhelper commands in this target to reduce clutter.
168  binary-indep: build install  binary-indep: build install

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

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