Annotation of OpenXM/misc/packages/Linux/Debian-free/debian/rules, Revision 1.1
1.1 ! takayama 1: #!/usr/bin/make -f
! 2: # Sample debian/rules that uses debhelper.
! 3: # GNU copyright 1997 by Joey Hess.
! 4: #
! 5: # This version is for a hypothetical package that builds an
! 6: # architecture-dependant package, as well as an architecture-independent
! 7: # package.
! 8:
! 9: # Uncomment this to turn on verbose mode.
! 10: #export DH_VERBOSE=1
! 11:
! 12: # This is the debhelper compatability version to use.
! 13: export DH_COMPAT=1
! 14:
! 15: # This has to be exported to make some magic below work.
! 16: export DH_OPTIONS
! 17:
! 18: MAN_PAGES = openxm.1 sm1.1
! 19: EXECUTABLES = gnuplot4ox gnuplot_x11 k0 ox ox_sm1 ox_k0 oxlog oxweave sm1 tigers ox_texmacs
! 20:
! 21: SHELL_SCRIPTS=sm1 oxmath oxMathematica ox openxm
! 22:
! 23: INST_PREFIX = `pwd`/debian/tmp/usr/local
! 24: INST_PREFIX2 = `pwd`/../../debian/tmp/usr/local
! 25:
! 26:
! 27: build: build-stamp
! 28: build-stamp:
! 29: dh_testdir
! 30: (export PATH=${PATH}:/usr/lib/jdk1.1/bin ; cd OpenXM/rc ;\
! 31: make install-free )
! 32: touch build-stamp
! 33:
! 34: clean:
! 35: dh_testdir
! 36: dh_testroot
! 37: rm -f build-stamp
! 38: -make -C OpenXM/src distclean
! 39: dh_clean
! 40:
! 41: install: DH_OPTIONS=
! 42: install: build
! 43: dh_testdir
! 44: dh_testroot
! 45: dh_clean -k
! 46: dh_installdirs
! 47: mkdir -p ${INST_PREFIX}
! 48: mkdir -p ${INST_PREFIX}/bin
! 49: (cd OpenXM/rc ;\
! 50: make prefix=${INST_PREFIX2} clean-under-prefix ;\
! 51: rm -f .done_global ; make prefix=/usr/local all-global-shell-scripts ;\
! 52: make prefix=${INST_PREFIX2} install-global-scripts-free ;\
! 53: make prefix=${INST_PREFIX2} copy-free )
! 54: -for i in $(EXECUTABLES); do strip ${INST_PREFIX}/OpenXM/bin/$$i ; done
! 55: # copying icons for KDE.
! 56: mkdir -p ${INST_PREFIX}/../../usr/lib/menu
! 57: mkdir -p ${INST_PREFIX}/../../usr/share/pixmaps
! 58: cp OpenXM/rc/kde/openxm-binary-knoppix ${INST_PREFIX}/../../usr/lib/menu/openxm-binary
! 59: cp OpenXM/doc/OpenXM-web/hopo_std_color.xpm OpenXM/doc/OpenXM-web/logo-openxm2-color.xpm ${INST_PREFIX}/../../usr/share/pixmaps
! 60: #dh_movefiles
! 61:
! 62: # Build architecture-independent files here.
! 63: # Pass -i to all debhelper commands in this target to reduce clutter.
! 64: binary-indep: DH_OPTIONS=-i
! 65: binary-indep: build install
! 66: # Need this version of debhelper for DH_OPTIONS to work.
! 67: dh_testversion 1.1.17
! 68: dh_testdir
! 69: dh_testroot
! 70: # dh_installdebconf
! 71: dh_installdocs
! 72: dh_installexamples
! 73: dh_installmenu
! 74: # dh_installemacsen
! 75: # dh_installpam
! 76: # dh_installinit
! 77: dh_installcron
! 78: # dh_installmanpages
! 79: dh_installinfo
! 80: # dh_undocumented
! 81: dh_installchangelogs
! 82: dh_link
! 83: dh_compress
! 84: dh_fixperms
! 85: # You may want to make some executables suid here.
! 86: dh_suidregister
! 87: dh_installdeb
! 88: # dh_perl
! 89: dh_gencontrol
! 90: dh_md5sums
! 91: dh_builddeb
! 92:
! 93: # Build architecture-dependent files here.
! 94: # Pass -a to all debhelper commands in this target to reduce clutter.
! 95: binary-arch: DH_OPTIONS=-a
! 96: binary-arch: build install
! 97: # Need this version of debhelper for DH_OPTIONS to work.
! 98: dh_testversion 1.1.17
! 99: dh_testdir
! 100: dh_testroot
! 101: # dh_installdebconf
! 102: dh_installdocs
! 103: dh_installexamples
! 104: dh_installmenu
! 105: # dh_installemacsen
! 106: # dh_installpam
! 107: # dh_installinit
! 108: dh_installcron
! 109: # dh_installmanpages
! 110: dh_installinfo
! 111: # dh_undocumented
! 112: dh_installchangelogs
! 113: dh_strip
! 114: dh_link
! 115: dh_compress
! 116: dh_fixperms
! 117: # You may want to make some executables suid here.
! 118: dh_suidregister
! 119: dh_installdeb
! 120: # dh_makeshlibs
! 121: # dh_perl
! 122: dh_shlibdeps
! 123: dh_gencontrol
! 124: dh_md5sums
! 125: dh_builddeb
! 126:
! 127: binary: binary-arch
! 128: .PHONY: build clean binary-indep binary-arch binary install
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>