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

Diff of /gcl/debian/rules

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

revision 1.41 by camm, Sat Mar 1 22:37:37 2003 UTC revision 1.41.4.1 by camm, Fri Aug 22 17:08:48 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=3  export DH_COMPAT=4
14  ARCHT:=$(shell dpkg --print-architecture)  ARCHT:=$(shell dpkg --print-architecture)
15    
16  MCC:=gcc  MCC:=gcc
17  ifeq ($(ARCHT),arm)  #ifeq ($(ARCHT),arm)
18  MCC:=gcc-3.2  #MCC:=gcc-3.2
19  endif  #endif
20  ifeq ($(ARCHT),hppa)  #ifeq ($(ARCHT),hppa)
21  MCC:=gcc-3.2  #MCC:=gcc-3.2
22  endif  #endif
23  ifeq ($(ARCHT),ia64)  #ifeq ($(ARCHT),ia64)
24  MCC:=gcc-3.2  #MCC:=gcc-3.2
25  endif  #endif
26    
27  #RELOC=locbfd  #RELOC=locbfd
28  RELOC=statsysbfd  RELOC=statsysbfd
# Line 50  DEBUG=--enable-debug Line 50  DEBUG=--enable-debug
50  endif  endif
51    
52  VERS=$(shell echo $$(cat majvers).$$(cat minvers))  VERS=$(shell echo $$(cat majvers).$$(cat minvers))
53    #EXT:=cvs
54    
55  configure-%-stamp:  CFG:=$(addsuffix /config.,. binutils) gmp3/configfsf.
56    CFGS:=$(addsuffix guess,$(CFG)) $(addsuffix sub,$(CFG)) #configure
57    
58          dh_testdir  FORCE:
59    
60    $(filter %.guess,$(CFGS)): /usr/share/misc/config.guess FORCE
61            ! [ -e $@ ] || [ -e $@.ori ] || cp $@ $@.ori
62            [ $$($< -t | tr -d '-') -le $$($@ -t | tr -d '-') ] || cp $< $@
63    
64    $(filter %.sub,$(CFGS)): /usr/share/misc/config.sub FORCE
65            ! [ -e $@ ] || [ -e $@.ori ] || cp $@ $@.ori
66            [ $$($< -t | tr -d '-') -le $$($@ -t | tr -d '-') ] || cp $< $@
67    
68    #configure: configure.in
69    #       ! [ -e $@ ] || [ -e $@.ori ] || mv $@ $@.ori
70    #       cd $(@D) && autoconf
71    
72          if [ /usr/share/misc/config.guess -nt config.guess ] ; then \  configure-%-stamp: $(CFGS)
73                  cp /usr/share/misc/config.guess .;\  
74                  cp /usr/share/misc/config.guess binutils;\          dh_testdir
                 cp /usr/share/misc/config.guess gmp;\  
                 cp /usr/share/misc/config.guess gmp3/configfsf.guess;\  
         fi  
         if [ /usr/share/misc/config.sub -nt config.sub ] ; then \  
                 cp /usr/share/misc/config.sub .;\  
                 cp /usr/share/misc/config.sub binutils;\  
                 cp /usr/share/misc/config.sub gmp;\  
                 cp /usr/share/misc/config.sub gmp3/configfsf.sub;\  
         fi  
         if [ configure.in -nt configure ]; then autoconf; fi  
75    
76          chmod -R +x gmp3/*          chmod -R +x gmp3/*
77    
# Line 84  configure-%-stamp: Line 88  configure-%-stamp:
88                  --mandir=\$${prefix}/share/man \                  --mandir=\$${prefix}/share/man \
89                  --enable-infodir=\$${prefix}/share/info                  --enable-infodir=\$${prefix}/share/info
90    
 #       [ "$(ARCHT)" != "ia64" ] || ( cd o && $(MCC) -c -Wall -DVOL=volatile -I. -fsigned-char -fwritable-strings -pipe -O -fomit-frame-pointer -I../h -I../gcl-tk num_log.c  )  
   
91          touch $@          touch $@
92    
93    
# Line 98  build-%-stamp: configure-%-stamp Line 100  build-%-stamp: configure-%-stamp
100          mkdir -p debian/$*          mkdir -p debian/$*
101          $(MAKE) install DESTDIR=$$(pwd)/debian/$*          $(MAKE) install DESTDIR=$$(pwd)/debian/$*
102    
         mkdir -p debian/$*/usr/share/emacs/site-lisp  
         cp -a $$(find debian/$*/usr/local -name site-lisp -type d) \  
                 debian/$*/usr/share/emacs/site-lisp/gcl  
         rm -rf debian/$*/usr/local  
   
         cat debian/$*/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp | \  
                 sed "s,$$(pwd)/debian/$*,,1" >debian/foo  
         mv debian/foo debian/$*/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp  
   
         rm -f debian/$*/usr/bin/*.exe debian/$*/usr/bin/*.bat  
   
         mkdir -p debian/$*/usr/include && \  
                 cd debian/$*/usr/include && \  
                 ln -snf $$(find ../lib -name "cmpinclude.h" ) .  
   
         find debian/$* -type f -name "*.lsp" -exec chmod -x {} \;  
         find debian/$* -type f -name "*.lisp" -exec chmod -x {} \;  
         find debian/$* -type f -name "*.el" -exec chmod -x {} \;  
         find debian/$* -type f -name "*.tcl" -exec chmod -x {} \;  
   
103          touch $@          touch $@
104    
105  bclean-stamp:  bclean-stamp:
# Line 131  build: build-stamp Line 113  build: build-stamp
113  build-stamp: build-trad-stamp bclean-stamp build-ansi-stamp ansi-tests/test_results  build-stamp: build-trad-stamp bclean-stamp build-ansi-stamp ansi-tests/test_results
114          touch $@          touch $@
115    
116  clean:  debian/control.rm:
117            rm -f $${$@%.rm}
118    
119    debian/control: debian/control.rm
120            cp debian/control.$(EXT) debian/control
121    
122    clean: debian/control
123          dh_testdir          dh_testdir
124          dh_testroot          dh_testroot
125          rm -f *stamp          rm -f *stamp
# Line 139  clean: Line 127  clean:
127          -$(MAKE) clean          -$(MAKE) clean
128    
129          dh_clean          dh_clean
130          rm -rf debian/trad debian/ansi          rm -rf debian/trad debian/ansi $(INS) debian/substvars
131            for i in $(CFGS) ; do ! [ -e $$i.ori ] || mv $$i.ori $$i ; done
132    
133    
134  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\-)
135  debian/substvars:  debian/substvars:
136          grep -q ^binutils: $@ 2>/dev/null || echo "binutils:Version=$(BVER)" >> $@          grep -q ^binutils: $@ 2>/dev/null || echo "binutils:Version=$(BVER)" >> $@
137    
138    INS:=$(shell for i in debian/*.in ; do echo $${i%.in} ; done |sed "s,gcl,gcl$(EXT),g")
139    
140    $(INS): debian/gcl$(EXT)% : debian/gcl%.in
141            cat $< | sed 's,@EXT@,$(EXT),g' >$@
142    
143  install: install-stamp  install: install-stamp
144  install-stamp: build-stamp  install-stamp: build-stamp debian/control $(INS)
145          dh_testdir          dh_testdir
146          dh_testroot          dh_testroot
147          dh_clean -k          dh_clean -k
# Line 157  install-stamp: build-stamp Line 151  install-stamp: build-stamp
151          cp -a debian/trad/* debian/tmp/          cp -a debian/trad/* debian/tmp/
152          cp -a debian/ansi/* debian/tmp/          cp -a debian/ansi/* debian/tmp/
153    
154          cat debian/gcl.sh | sed "s,gcl/,/usr/lib/gcl-$(VERS)/,g" >debian/tmp/usr/bin/gcl          mkdir -p debian/tmp/usr/share/emacs/site-lisp
155          chmod 0755 debian/tmp/usr/bin/gcl          cp -a $$(find debian/tmp/usr/local -name site-lisp -type d) \
156                    debian/tmp/usr/share/emacs/site-lisp/gcl$(EXT)
157            rm -rf debian/tmp/usr/local
158    
159            cat debian/tmp/usr/share/emacs/site-lisp/gcl$(EXT)/gcl.el |\
160                    sed "s,(provide 'gcl),(provide 'gcl$(EXT)),1" >tmp &&\
161                    mv tmp debian/tmp/usr/share/emacs/site-lisp/gcl$(EXT)/gcl$(EXT).el
162            [ "$(EXT)" = "" ] || rm debian/tmp/usr/share/emacs/site-lisp/gcl$(EXT)/gcl.el
163    
164            cat debian/tmp/usr/share/emacs/site-lisp/gcl$(EXT)/dbl.el |\
165                    sed "s,(provide 'dbl),(provide 'dbl$(EXT)),1" >tmp &&\
166                    mv tmp debian/tmp/usr/share/emacs/site-lisp/gcl$(EXT)/dbl$(EXT).el
167            [ "$(EXT)" = "" ] || rm debian/tmp/usr/share/emacs/site-lisp/gcl$(EXT)/dbl.el
168    
169            [ "$(EXT)" = "" ] || \
170                    for i in debian/tmp/usr/share/info/*.info*; do \
171                            mv $$i $$(echo $$i | sed "s,gcl,gcl$(EXT),g"); done
172    
173            [ "$(EXT)" = "" ] || \
174                    mv debian/tmp/usr/share/doc/gcl-doc debian/tmp/usr/share/doc/gcl$(EXT)-doc
175    
176            cat debian/tmp/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp | \
177                    sed "s,$$(pwd)/debian/tmp,,1" >debian/foo
178            mv debian/foo debian/tmp/usr/lib/gcl-$(VERS)/gcl-tk/demos/index.lsp
179    
180            rm -f debian/tmp/usr/bin/*.exe debian/tmp/usr/bin/*.bat
181    
182            find debian/tmp -type f -name "*.lsp" -exec chmod -x {} \;
183            find debian/tmp -type f -name "*.lisp" -exec chmod -x {} \;
184            find debian/tmp -type f -name "*.el" -exec chmod -x {} \;
185            find debian/tmp -type f -name "*.tcl" -exec chmod -x {} \;
186    
187            rm -f debian/tmp/usr/bin/gcl
188            cat debian/gcl.sh | sed "s,gcl/,/usr/lib/gcl-$(VERS)/,g" >debian/tmp/usr/bin/gcl$(EXT)
189            chmod 0755 debian/tmp/usr/bin/gcl$(EXT)
190    
191          dh_install          dh_install
192    
# Line 185  binary-arch: build install debian/substv Line 213  binary-arch: build install debian/substv
213          dh_testroot -a          dh_testroot -a
214          dh_installdocs -a          dh_installdocs -a
215          dh_installemacsen -a          dh_installemacsen -a
216          dh_installmanpages -a gcl/gmp3/ansi2knr.1  #       dh_installmanpages -a gcl/gmp3/ansi2knr.1
217            dh_installman -a
218          dh_installchangelogs ChangeLog -a          dh_installchangelogs ChangeLog -a
219          dh_strip -a -Xlibgcl -Xlibansi_gcl          dh_strip -a -Xlibgcl -Xlibansi_gcl
220          dh_link -a          dh_link -a

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.41.4.1

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