[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Linux / Debian2

Annotation of OpenXM/misc/packages/Linux/Debian2/Makefile, Revision 1.6

1.1       takayama    1: # Do source dot.bashrc before doing something.
                      2:
1.6     ! takayama    3: VERSION=1.2.3-6
1.1       takayama    4: # This VERSION must be compatible with debian/control ver.
                      5: #                                OpenXM/download/Makefile
                      6: #                                work/OpenXM/src/asir-port/Makefile
                      7:
                      8: MD5=md5sum
                      9: OS=`uname -s`
                     10: RSYNC=rsync -avz -e ssh
                     11: FTP_DIR=/home/ftp/pub/OpenXM/head/knoppix
1.5       takayama   12: TM_OX=work/OpenXM/src/kxx/init-openxm.scm
1.1       takayama   13:
1.5       takayama   14: build-package: fetch  make-tar-ball-2  make-tar-ball-3
1.2       takayama   15:        fakeroot debian/rules build
                     16:        fakeroot debian/rules install
                     17:        fakeroot dpkg-buildpackage
                     18:
                     19: build-deb:
1.1       takayama   20:        fakeroot debian/rules build
                     21:        fakeroot debian/rules install
                     22:        fakeroot dpkg-buildpackage
                     23:
                     24: fetch:
                     25:        if [ ! -f .fetch_done ]; then \
                     26:          rm -rf work ; \
                     27:          mkdir  work ; \
                     28:          (cd work ; cvs -d kerberos.math.kobe-u.ac.jp:/home/cvsroot/openxm checkout OpenXM OpenXM_contrib2) ; \
                     29:        fi
                     30:        touch .fetch_done
                     31:
                     32: build: fetch
                     33:        if [ ! -f .build_done ]; then \
                     34:          touch work/OpenXM/src/asir-port/for_knoppix ;\
                     35:          (cd work/OpenXM/src ;  make ; make install) ;\
                     36:          (cd work/OpenXM/src ; make install-document ) ; \
                     37:        fi
                     38:        touch .build_done
                     39:
                     40: ## Knoppix step 1.  Install asir-port.sh under OpenXM/bin
                     41: ## Knoppix step2 work 2.  Remove FLL files and replace them to a symbolic link
                     42: ## to /home/knoppix/.asir-tmp/...
                     43: build-knoppix: build
                     44:        if [ ! -f .build-knoppix_done ]; then \
                     45:          (cd work/OpenXM/src/asir-port ; make install ) ; \
                     46:          (cd work/OpenXM/src/asir-port ; make install-for-knoppix ) ; \
                     47:        fi
                     48:        touch .build-knoppix_done
                     49:
                     50: ## Generate asir-Linux-${VERSION}.gz, ... under work.
                     51: ## Copy them to the ftp area.
                     52: make-tar-ball-1: build-knoppix
                     53:        if [ ! -f .make-tar-ball-1_done ]; then \
                     54:          (cd work/OpenXM/src/asir-port ; make gentar-for-knoppix ) ; \
                     55:          (cd work/OpenXM/src/asir-port ; make copy-for-knoppix ) ; \
                     56:        fi
                     57:        touch .make-tar-ball-1_done
                     58:
                     59: # Do strip.
                     60: # Generate openxm-binary-${VERSION}.tar.gz under work
                     61: # Compute MD5 and copy it to OpenXM/download
                     62: BINARY_FILES=d0 fep k0 ox ox100start ox_k0 ox_sm1 ox_texmacs oxc \
                     63:     oxgentexi oxlog oxreplace oxweave phc6 polymake2tfb sm1 tigers
                     64: EXCLUDE_FILES=--exclude CVS --exclude .keep_me \
                     65:               --exclude-from ../exclude-files.txt
                     66: FILES=OpenXM/Copyright OpenXM/bin OpenXM/include \
                     67:       OpenXM/lib OpenXM/man OpenXM/rc
                     68:
                     69: make-tar-ball-2: make-tar-ball-1
                     70:        if [ ! -f .make-tar-ball-2_done ]; then \
                     71:          (cd work/OpenXM/bin ; for i in ${BINARY_FILES} ; do strip $$i ; done ) ;\
1.4       takayama   72:          (cd work/OpenXM/rc ; make clean ) ;\
1.1       takayama   73:          (cd work; tar czvf openxm-binary-${OS}-${VERSION}.tar.gz ${EXCLUDE_FILES} ${FILES}) ; \
                     74:          (cd work ; ${MD5} "openxm-binary-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-openxm-binary.md5) ;\
                     75:          (cp work/distinfo-openxm-binary.md5 OpenXM/download) ; \
                     76:          (cp work/OpenXM/lib/version.txt OpenXM/download) ; \
                     77:        fi
                     78:        touch .make-tar-ball-2_done
                     79:
1.5       takayama   80: ##cf.misc-2004/A2/knoppix-2005/Makefile. There is no fix on .asirrc this time.
                     81: make-tar-ball-3:
                     82:        if [ ! -f .make-tar-ball-3_done ]; then \
                     83:          rm -rf .TeXmacs ;\
                     84:          mkdir -p .TeXmacs/plugins/ox/progs ;\
                     85:          mkdir -p .TeXmacs/progs ;\
                     86:          cp ${TM_OX} .TeXmacs/plugins/ox/progs/init-ox.scm ;\
                     87:          touch .TeXmacs/progs/my-init-texmacs.scm ;\
                     88:          tar czvf work/ox-texmacs-${OS}-${VERSION}.tar.gz ./.TeXmacs  ;\
                     89:        fi
                     90:        touch .make-tar-ball-3_done
                     91:
                     92: copy-tar-ball-and-asir: make-tar-ball-2 make-tar-ball-3
1.1       takayama   93:        (cd work/OpenXM/src/asir-port ; make copy-for-knoppix)
                     94:        (cd work ;  ${RSYNC} "openxm-binary-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.5       takayama   95:        (cd work ;  ${RSYNC} "ox-texmacs-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.1       takayama   96:        (cp ../openxm*deb . ;  ${RSYNC} "openxm_${VERSION}_i386.deb" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
                     97:
                     98: clean: clean-tilde
                     99:        rm -rf debian/tmp build-stamp work .*done openxm*.deb
                    100: clean-tilde:
                    101:        rm -rf *~

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>