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

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

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