"Fossies" - the Fresh Open Source Software Archive

Member "ansifilter-2.18/makefile" (30 Jan 2021, 3003 Bytes) of package /linux/privat/ansifilter-2.18.tar.bz2:


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": 2.14_vs_2.15.

    1 # Installation script for ansifilter.
    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 binary:
   13 bin_dir = ${PREFIX}/bin/
   14 
   15 # Location of the man page:
   16 man_dir = ${PREFIX}/share/man/man1/
   17 
   18 # Location of the documentation:
   19 doc_dir = ${PREFIX}/share/doc/ansifilter/
   20 
   21 # Location of additional gui files
   22 desktop_apps = ${PREFIX}/share/applications/
   23 desktop_pixmaps = ${PREFIX}/share/pixmaps/
   24 
   25 # Commands:
   26 GZIP=gzip -9f
   27 QMAKE=qmake
   28 
   29 INSTALL_DATA=install -m644
   30 INSTALL_PROGRAM=install -m755
   31 MKDIR=mkdir -p -m 755
   32 RMDIR=rm -r -f
   33 
   34 all:
   35 	${MAKE} -C ./src -f ./makefile 
   36 
   37 all-gui gui:
   38 	${QMAKE} -makefile -o src/qt-gui/Makefile src/qt-gui/ansifilter-gui.pro
   39 	${MAKE} -C ./src/qt-gui -f ./Makefile
   40 
   41 all-tcl tcl:
   42 	${MAKE} -C ./src/tcl -f ./makefile
   43 
   44 install:
   45 	@echo "This script will install ansifilter in the following directories:"
   46 	@echo "Documentation directory: ${DESTDIR}${doc_dir}"
   47 	@echo "Manual directory:        ${DESTDIR}${man_dir}"
   48 	@echo "Binary directory:        ${DESTDIR}${bin_dir}"
   49 	@echo
   50 
   51 	${MKDIR} ${DESTDIR}${doc_dir}
   52 	${MKDIR} ${DESTDIR}${man_dir}
   53 	${MKDIR} ${DESTDIR}${bin_dir}
   54 
   55 	${INSTALL_DATA} ./man/ansifilter.1 ${DESTDIR}${man_dir}
   56 	-${GZIP} ${DESTDIR}${man_dir}ansifilter.1
   57 	${INSTALL_DATA} ./README.adoc ${DESTDIR}${doc_dir}
   58 	${INSTALL_DATA} ./ChangeLog.adoc ${DESTDIR}${doc_dir}
   59 	${INSTALL_DATA} ./COPYING ${DESTDIR}${doc_dir}
   60 	${INSTALL_DATA} ./INSTALL ${DESTDIR}${doc_dir}
   61 	${INSTALL_PROGRAM} ./src/ansifilter ${DESTDIR}${bin_dir}
   62 
   63 	@echo
   64 	@echo "Done."
   65 	@echo "Type ansifilter --help or man ansifilter for instructions."
   66 	@echo "Do not hesitate to report problems. Unknown bugs are hard to fix."
   67 	
   68 install-gui:
   69 	${INSTALL_PROGRAM} ./src/qt-gui/ansifilter-gui ${DESTDIR}${bin_dir}
   70 	${MKDIR} ${DESTDIR}${desktop_apps} \
   71 		${DESTDIR}${desktop_pixmaps}
   72 	${INSTALL_DATA} ./ansifilter.desktop ${DESTDIR}${desktop_apps}
   73 	${INSTALL_DATA} ./src/qt-gui/ansifilter.xpm ${DESTDIR}${desktop_pixmaps}
   74 
   75 uninstall:
   76 	@echo "Removing ansifilter files from system..."
   77 	${RMDIR} ${DESTDIR}${doc_dir}
   78 	rm -f ${DESTDIR}${man_dir}ansifilter.1.gz
   79 	rm -f ${DESTDIR}${bin_dir}ansifilter
   80 	rm -f ${DESTDIR}${bin_dir}ansifilter-gui
   81 	@echo "Done. Have a nice day!"
   82 
   83 clean:
   84 	$(MAKE) -C ./src -f ./makefile clean
   85 	$(MAKE) -C ./src/tcl -f ./makefile clean
   86 
   87 apidocs:
   88 	doxygen Doxyfile
   89 
   90 help:
   91 	@echo "This makefile offers the following options:"
   92 	@echo
   93 	@echo "(all)            Compile."
   94 	@echo "all-gui          Compile Qt GUI (requires Qt 5.x)"
   95 	@echo "install*         Copy all data files to ${data_dir}."
   96 	@echo "clean            Remove object files and binary."
   97 	@echo "uninstall*       Remove ansifilter files from system."
   98 	@echo
   99 	@echo "* Command needs root privileges."
  100 	@echo "See src/makefile for compilation and linking options."
  101 
  102 # Target needed for redhat 9.0 rpmbuild
  103 install-strip:
  104 
  105 .PHONY: clean all install apidocs help uninstall install-strip