1 --- Makefile.orig 2010-09-12 20:56:54.000000000 +0200
2 +++ Makefile 2010-09-16 21:18:33.720000008 +0200
8 +INSTALL = install -m644
9 +INSTALL_BIN = install -m755
27 -DGUESS_LEXEMES -DGUESS_PREFIX \
30 -DLOOSING_RPM #-DDMALLOC
34 # to which man section man pages for fsa belong
37 +# Hardcoded paths for in-file replacements
38 +BINDIRFILE = ${BINDIR}
39 +DICTDIRFILE = ${DICTDIR}
40 +TCLMACQDIRFILE = ${TCLMACQDIR}
41 +TCLMACQBINDIRFILE = ${TCLMACQBINDIR}
43 ########################################################################
46 else echo "Directory ${MANDIR}/man${MANSECT5} does not exist!" ; fi
48 installbin: ${ALL_PROGS}
49 - ${INSTALL} ${ALL_PROGS} ${BINDIR}
50 + ${INSTALL_BIN} ${ALL_PROGS} ${BINDIR}
52 installbuild: fsa_build
53 ${INSTALL} fsa_build ${BINDIR}
56 if [ -d ${BINDIR} ] ; then \
57 for s in ${SKL_SCRIPTS} ; \
58 - do sed -e "s|XXX_DICT_DIR|${DICTDIR}|g" \
59 - -e "s|XXX_EXEC_DIR|${BINDIR}|g" < $${s}-skeleton > $${s} ; \
60 + do sed -e "s|XXX_DICT_DIR|${DICTDIRFILE}|g" \
61 + -e "s|XXX_EXEC_DIR|${BINDIRFILE}|g" < $${s}-skeleton > $${s} ; \
63 for s in ${TCL_SCRIPTS} ; \
64 - do sed -e "s|@TCLMACQDIR@|${TCLMACQDIR}|g" \
65 - -e "s|@TCLMACQBINDIR@|${TCLMACQBINDIR}|g" \
66 + do sed -e "s|@TCLMACQDIR@|${TCLMACQDIRFILE}|g" \
67 + -e "s|@TCLMACQBINDIR@|${TCLMACQBINDIRFILE}|g" \
68 -e "s|@Q@|${PREP_FCONF}|g" < $${s}.in > $${s} ; \
70 chmod 0755 ${ALL_SCRIPTS} ; \
71 - ${INSTALL} ${ALL_SCRIPTS} ${BINDIR} ;\
72 + ${INSTALL_BIN} ${ALL_SCRIPTS} ${BINDIR} ;\
73 ${INSTALL} ${TCL_SUPP_FILES} ${TCLMACQDIR} ; \
74 else echo "Directory ${BINDIR} does not exist!" ; fi