"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/makefile" (12 May 2020, 7221 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "makefile": 3.53_vs_3.54.

    1 # Installation script for highlight.
    2 # See INSTALL for details.
    3 
    4 # Installation directories:
    5 
    6 # Destination directory for installation (intended for packagers)
    7 DESTDIR =
    8 
    9 # Root directory for final installation
   10 PREFIX = /usr
   11 
   12 # Location of the highlight data files:
   13 data_dir = ${PREFIX}/share/highlight/
   14 
   15 # Location of the highlight binary:
   16 bin_dir = ${PREFIX}/bin/
   17 
   18 # Location of the highlight man pages:
   19 man_dir = ${PREFIX}/share/man/
   20 
   21 # Location of the highlight documentation:
   22 doc_dir = ${PREFIX}/share/doc/highlight/
   23 
   24 # Location of the highlight extras:
   25 examples_dir = ${doc_dir}extras/
   26 
   27 # Location of the highlight config files:
   28 conf_dir = /etc/highlight/
   29 #conf_dir = ${PREFIX}/etc/highlight/
   30 
   31 # Location of additional gui files
   32 desktop_apps = ${PREFIX}/share/applications/
   33 desktop_pixmaps = ${PREFIX}/share/pixmaps/
   34 
   35 # Commands:
   36 GZIP=gzip -9f
   37 INSTALL_DATA=install -m644
   38 INSTALL_PROGRAM=install -m755
   39 MKDIR=mkdir -p -m 755
   40 RMDIR=rm -r -f
   41 
   42 all cli:
   43 	${MAKE} -C ./src -f ./makefile HL_DATA_DIR=${data_dir} HL_CONFIG_DIR=${conf_dir}
   44 
   45 lib lib-static:
   46 	${MAKE} -C ./src -f ./makefile HL_DATA_DIR=${data_dir} HL_CONFIG_DIR=${conf_dir} lib-static
   47 
   48 lib-shared:
   49 	${MAKE} -C ./src -f ./makefile HL_DATA_DIR=${data_dir} HL_CONFIG_DIR=${conf_dir} PIC=1 lib-shared
   50 
   51 gui:
   52 	${MAKE} -C ./src -f ./makefile HL_DATA_DIR=\"${data_dir}\" HL_CONFIG_DIR=\"${conf_dir}\" HL_DOC_DIR=\"${doc_dir}\" gui-qt
   53 	@echo
   54 	@echo "You need to run 'make install' AND 'make install-gui' now!"
   55 
   56 install:
   57 	@echo "This script will install highlight in the following directories:"
   58 	@echo "Data directory:          ${DESTDIR}${data_dir}"
   59 	@echo "Documentation directory: ${DESTDIR}${doc_dir}"
   60 	@echo "Plugin directory:        ${DESTDIR}${data_dir}/plugins"
   61 	@echo "Examples directory:      ${DESTDIR}${examples_dir}"
   62 	@echo "Manual directory:        ${DESTDIR}${man_dir}man1/"
   63 	@echo "Binary directory:        ${DESTDIR}${bin_dir}"
   64 	@echo "Configuration directory: ${DESTDIR}${conf_dir}"
   65 	@echo
   66 
   67 	${MKDIR} ${DESTDIR}${doc_dir}
   68 	${MKDIR} ${DESTDIR}${conf_dir}
   69 	${MKDIR} ${DESTDIR}${examples_dir} \
   70 		${DESTDIR}${examples_dir}web_plugins \
   71 		${DESTDIR}${examples_dir}web_plugins/dokuwiki \
   72 		${DESTDIR}${examples_dir}web_plugins/movabletype \
   73 		${DESTDIR}${examples_dir}web_plugins/wordpress \
   74 		${DESTDIR}${examples_dir}swig \
   75 		${DESTDIR}${examples_dir}tcl \
   76 		${DESTDIR}${examples_dir}pandoc \
   77 		${DESTDIR}${examples_dir}json \
   78 		${DESTDIR}${examples_dir}pywal \
   79 		${DESTDIR}${examples_dir}langDefs-resources \
   80 		${DESTDIR}${examples_dir}themes-resources \
   81 		${DESTDIR}${examples_dir}themes-resources/base16 \
   82 		${DESTDIR}${examples_dir}themes-resources/css-themes
   83 
   84 	${MKDIR} ${DESTDIR}${data_dir} \
   85 		${DESTDIR}${data_dir}themes \
   86 		${DESTDIR}${data_dir}themes/base16 \
   87 		${DESTDIR}${data_dir}langDefs \
   88 		${DESTDIR}${data_dir}plugins
   89 	${MKDIR} ${DESTDIR}${man_dir}man1/
   90 	${MKDIR} ${DESTDIR}${man_dir}man5/
   91 	${MKDIR} ${DESTDIR}${bin_dir}
   92 
   93 	${INSTALL_DATA} ./langDefs/*.lang ${DESTDIR}${data_dir}langDefs/
   94 	${INSTALL_DATA} ./*.conf ${DESTDIR}${conf_dir}
   95 	${INSTALL_DATA} ./themes/*.theme ${DESTDIR}${data_dir}themes/
   96 	${INSTALL_DATA} ./themes/base16/*.theme ${DESTDIR}${data_dir}themes/base16/
   97 	${INSTALL_DATA} ./plugins/*.lua ${DESTDIR}${data_dir}plugins/
   98 	${INSTALL_DATA} ./man/highlight.1 ${DESTDIR}${man_dir}man1/
   99 	-${GZIP} ${DESTDIR}${man_dir}man1/highlight.1
  100 	${INSTALL_DATA} ./man/filetypes.conf.5 ${DESTDIR}${man_dir}man5/
  101 	-${GZIP} ${DESTDIR}${man_dir}man5/filetypes.conf.5
  102 
  103 	${INSTALL_DATA} ./AUTHORS ${DESTDIR}${doc_dir}
  104 	${INSTALL_DATA} ./README* ${DESTDIR}${doc_dir}
  105 	${INSTALL_DATA} ./ChangeLog.adoc ${DESTDIR}${doc_dir}
  106 	${INSTALL_DATA} ./COPYING ${DESTDIR}${doc_dir}
  107 	${INSTALL_DATA} ./INSTALL ${DESTDIR}${doc_dir}
  108 	${INSTALL_DATA} ./extras/web_plugins/dokuwiki/* ${DESTDIR}${examples_dir}web_plugins/dokuwiki/
  109 	${INSTALL_DATA} ./extras/web_plugins/movabletype/* ${DESTDIR}${examples_dir}web_plugins/movabletype/
  110 	${INSTALL_DATA} ./extras/web_plugins/wordpress/* ${DESTDIR}${examples_dir}web_plugins/wordpress/
  111 	${INSTALL_DATA} ./extras/swig/* ${DESTDIR}${examples_dir}swig
  112 	${INSTALL_DATA} ./extras/tcl/* ${DESTDIR}${examples_dir}tcl
  113 	${INSTALL_DATA} ./extras/pandoc/* ${DESTDIR}${examples_dir}pandoc
  114 	${INSTALL_DATA} ./extras/pywal/* ${DESTDIR}${examples_dir}pywal
  115 	${INSTALL_DATA} ./extras/json/* ${DESTDIR}${examples_dir}json
  116 	${INSTALL_DATA} ./extras/langDefs-resources/* ${DESTDIR}${examples_dir}langDefs-resources
  117 	${INSTALL_DATA} ./extras/themes-resources/base16/* ${DESTDIR}${examples_dir}themes-resources/base16
  118 	${INSTALL_DATA} ./extras/themes-resources/css-themes/* ${DESTDIR}${examples_dir}themes-resources/css-themes
  119 	${INSTALL_DATA} ./extras/highlight_pipe.* ${DESTDIR}${examples_dir}
  120 	${INSTALL_DATA} ./extras/*.py ${DESTDIR}${examples_dir}
  121 	${INSTALL_PROGRAM} ./src/highlight ${DESTDIR}${bin_dir}
  122 
  123 	@echo
  124 	@echo "Done."
  125 	@echo "Type highlight --help or man highlight for instructions."
  126 	@echo "Take a look at ${DESTDIR}${examples_dir} for web plugins, SWIG and TCL bindings."
  127 	@echo "Execute 'make install-gui' to install the highlight GUI ('make gui')."
  128 	@echo "Do not hesitate to report problems. Unknown bugs are hard to fix."
  129 
  130 install-gui:
  131 	@echo "Installing files for the GUI..."
  132 	${MKDIR} ${DESTDIR}${data_dir} \
  133 		${DESTDIR}${data_dir}gui_files \
  134 		${DESTDIR}${data_dir}gui_files/ext \
  135 		${DESTDIR}${data_dir}gui_files/l10n \
  136 		${DESTDIR}${desktop_apps} \
  137 		${DESTDIR}${desktop_pixmaps}
  138 
  139 	${INSTALL_DATA} ./gui_files/l10n/* ${DESTDIR}${data_dir}gui_files/l10n/
  140 	${INSTALL_DATA} ./gui_files/ext/* ${DESTDIR}${data_dir}gui_files/ext/
  141 	${INSTALL_DATA} ./highlight.desktop ${DESTDIR}${desktop_apps}
  142 	${INSTALL_DATA} ./src/gui-qt/highlight.xpm ${DESTDIR}${desktop_pixmaps}
  143 	${INSTALL_PROGRAM} ./src/highlight-gui ${DESTDIR}${bin_dir}
  144 
  145 uninstall:
  146 	@echo "Removing highlight files from system..."
  147 	${RMDIR} ${DESTDIR}${data_dir}
  148 	${RMDIR} ${DESTDIR}${doc_dir}
  149 	${RMDIR} ${DESTDIR}${conf_dir}
  150 	${RMDIR} ${DESTDIR}${examples_dir}
  151 	rm -rf ${DESTDIR}${man_dir}man1/highlight.1.gz
  152 	rm -rf ${DESTDIR}${man_dir}man5/filetypes.conf.5.gz
  153 
  154 	rm -rf ${DESTDIR}${bin_dir}highlight
  155 	rm -rf ${DESTDIR}${bin_dir}highlight-gui
  156 	rm -rf ${DESTDIR}${desktop_apps}highlight.desktop
  157 	rm -rf ${DESTDIR}${desktop_pixmaps}highlight.xpm
  158 	@echo "Done."
  159 
  160 clean cleanall:
  161 	$(MAKE) -C ./src -f ./makefile clean
  162 
  163 clean-obj:
  164 	$(MAKE) -C ./src -f ./makefile clean-obj
  165 
  166 apidocs:
  167 	doxygen Doxyfile
  168 
  169 help:
  170 	@echo "This makefile offers the following options:"
  171 	@echo
  172 	@echo "(all)            Compile the command line interface."
  173 	@echo "lib-static       Compile only the static library."
  174 	@echo "lib-shared       Compile only the shared library."
  175 	@echo "gui              Compile the Qt (5.x) GUI."
  176 	@echo "install*         Copy all data files to ${data_dir}."
  177 	@echo "install-gui*     Copy GUI data files to ${data_dir}."
  178 	@echo "clean            Remove object files and binaries."
  179 	@echo "apidocs          Generate HTML API documentation using doxygen."
  180 	@echo "uninstall*       Remove highlight files from system."
  181 	@echo
  182 	@echo "* Command needs root privileges."
  183 	@echo "See src/makefile for compilation and linking options."
  184 
  185 # Target needed for redhat 9.0 rpmbuild
  186 install-strip:
  187 
  188 .PHONY: clean all install apidocs help uninstall install-strip clean-obj