[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.2

1.1       takayama    1: # Do source dot.bashrc before doing something.
                      2:
                      3: VERSION=1.2.3-4
                      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
                     12:
1.2     ! takayama   13: build-package: fetch  make-tar-ball-2
        !            14:        fakeroot debian/rules build
        !            15:        fakeroot debian/rules install
        !            16:        fakeroot dpkg-buildpackage
        !            17:
        !            18: build-deb:
1.1       takayama   19:        fakeroot debian/rules build
                     20:        fakeroot debian/rules install
                     21:        fakeroot dpkg-buildpackage
                     22:
                     23: fetch:
                     24:        if [ ! -f .fetch_done ]; then \
                     25:          rm -rf work ; \
                     26:          mkdir  work ; \
                     27:          (cd work ; cvs -d kerberos.math.kobe-u.ac.jp:/home/cvsroot/openxm checkout OpenXM OpenXM_contrib2) ; \
                     28:        fi
                     29:        touch .fetch_done
                     30:
                     31: build: fetch
                     32:        if [ ! -f .build_done ]; then \
                     33:          touch work/OpenXM/src/asir-port/for_knoppix ;\
                     34:          (cd work/OpenXM/src ;  make ; make install) ;\
                     35:          (cd work/OpenXM/src ; make install-document ) ; \
                     36:        fi
                     37:        touch .build_done
                     38:
                     39: ## Knoppix step 1.  Install asir-port.sh under OpenXM/bin
                     40: ## Knoppix step2 work 2.  Remove FLL files and replace them to a symbolic link
                     41: ## to /home/knoppix/.asir-tmp/...
                     42: build-knoppix: build
                     43:        if [ ! -f .build-knoppix_done ]; then \
                     44:          (cd work/OpenXM/src/asir-port ; make install ) ; \
                     45:          (cd work/OpenXM/src/asir-port ; make install-for-knoppix ) ; \
                     46:        fi
                     47:        touch .build-knoppix_done
                     48:
                     49: ## Generate asir-Linux-${VERSION}.gz, ... under work.
                     50: ## Copy them to the ftp area.
                     51: make-tar-ball-1: build-knoppix
                     52:        if [ ! -f .make-tar-ball-1_done ]; then \
                     53:          (cd work/OpenXM/src/asir-port ; make gentar-for-knoppix ) ; \
                     54:          (cd work/OpenXM/src/asir-port ; make copy-for-knoppix ) ; \
                     55:        fi
                     56:        touch .make-tar-ball-1_done
                     57:
                     58: # Do strip.
                     59: # Generate openxm-binary-${VERSION}.tar.gz under work
                     60: # Compute MD5 and copy it to OpenXM/download
                     61: BINARY_FILES=d0 fep k0 ox ox100start ox_k0 ox_sm1 ox_texmacs oxc \
                     62:     oxgentexi oxlog oxreplace oxweave phc6 polymake2tfb sm1 tigers
                     63: EXCLUDE_FILES=--exclude CVS --exclude .keep_me \
                     64:               --exclude-from ../exclude-files.txt
                     65: FILES=OpenXM/Copyright OpenXM/bin OpenXM/include \
                     66:       OpenXM/lib OpenXM/man OpenXM/rc
                     67:
                     68: make-tar-ball-2: make-tar-ball-1
                     69:        if [ ! -f .make-tar-ball-2_done ]; then \
                     70:          (cd work/OpenXM/bin ; for i in ${BINARY_FILES} ; do strip $$i ; done ) ;\
                     71:          (cd work; tar czvf openxm-binary-${OS}-${VERSION}.tar.gz ${EXCLUDE_FILES} ${FILES}) ; \
                     72:          (cd work ; ${MD5} "openxm-binary-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-openxm-binary.md5) ;\
                     73:          (cp work/distinfo-openxm-binary.md5 OpenXM/download) ; \
                     74:          (cp work/OpenXM/lib/version.txt OpenXM/download) ; \
                     75:        fi
                     76:        touch .make-tar-ball-2_done
                     77:
                     78: copy-tar-ball-and-asir: make-tar-ball-2
                     79:        (cd work/OpenXM/src/asir-port ; make copy-for-knoppix)
                     80:        (cd work ;  ${RSYNC} "openxm-binary-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
                     81:        (cp ../openxm*deb . ;  ${RSYNC} "openxm_${VERSION}_i386.deb" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
                     82:
                     83: clean: clean-tilde
                     84:        rm -rf debian/tmp build-stamp work .*done openxm*.deb
                     85: clean-tilde:
                     86:        rm -rf *~

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