Annotation of OpenXM/src/editline/Makefile, Revision 1.1
1.1 ! ohara 1: # $OpenXM$
! 2: OpenXM_HOME=../..
! 3: PREFIX=${OpenXM_HOME}
! 4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
! 5: RM = /bin/rm
! 6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
! 7: # Original: https://thrysoee.dk/editline/
! 8: DISTNAME=libedit-20210910-3.1
! 9: DISTFILES=${DISTNAME}.tar.gz
! 10: WRKSRC=work/${DISTNAME}
! 11: PATCHFILES =
! 12:
! 13: all : build
! 14:
! 15: fetch:
! 16: -mkdir work
! 17: @if [ ! -f work/.fetch_done ]; then \
! 18: for i in ${DISTFILES}; do ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}$$i ${DISTDIR}; done ; \
! 19: fi
! 20: @touch work/.fetch_done
! 21:
! 22: extract: fetch
! 23: @if [ ! -f work/.extract_done ]; then \
! 24: for i in ${DISTFILES}; do cat ${DISTDIR}/$$i | (cd work; tar xzvf -) ; done ; \
! 25: fi
! 26: @touch work/.extract_done
! 27:
! 28: patch: extract
! 29: @if [ ! -f work/.patch_done ]; then \
! 30: for i in ${PATCHFILES} ; do \
! 31: cat $$i | (cd ${WRKSRC}; patch -p1) ; \
! 32: done ; \
! 33: fi
! 34: @touch work/.patch_done
! 35:
! 36: configure : patch
! 37: @if [ ! -f work/.configure_done ]; then \
! 38: prefix=`cd ${OpenXM_HOME}; pwd` ; \
! 39: (cd ${WRKSRC}; ./configure --prefix=$$prefix); \
! 40: fi
! 41: @touch work/.configure_done
! 42:
! 43: build : configure
! 44: @if [ ! -f work/.build_done ]; then \
! 45: (cd ${WRKSRC}; ${MAKE}) ; \
! 46: fi
! 47: @touch work/.build_done
! 48:
! 49: install: build
! 50: @if [ ! -f work/.install_done ]; then \
! 51: (cd ${WRKSRC}; ${MAKE} install-exec install-data) ; \
! 52: fi
! 53: @touch work/.install_done
! 54:
! 55: clean:
! 56: -$(RM) -rf work
! 57:
! 58: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>