"Fossies" - the Fresh Open Source Software Archive

Member "lzip-1.22-rc2/Makefile.in" (1 May 2020, 4278 Bytes) of package /linux/misc/lzip-1.22-rc2.tar.lz:


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.in": 1.21_vs_1.22-rc1.

    1 
    2 DISTNAME = $(pkgname)-$(pkgversion)
    3 INSTALL = install
    4 INSTALL_PROGRAM = $(INSTALL) -m 755
    5 INSTALL_DATA = $(INSTALL) -m 644
    6 INSTALL_DIR = $(INSTALL) -d -m 755
    7 SHELL = /bin/sh
    8 CAN_RUN_INSTALLINFO = $(SHELL) -c "install-info --version" > /dev/null 2>&1
    9 
   10 objs = arg_parser.o lzip_index.o list.o encoder_base.o encoder.o \
   11        fast_encoder.o decoder.o main.o
   12 
   13 
   14 .PHONY : all install install-bin install-info install-man \
   15          install-strip install-compress install-strip-compress \
   16          install-bin-strip install-info-compress install-man-compress \
   17          uninstall uninstall-bin uninstall-info uninstall-man \
   18          doc info man check dist clean distclean
   19 
   20 all : $(progname)
   21 
   22 $(progname) : $(objs)
   23 	$(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $(objs)
   24 
   25 main.o : main.cc
   26 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -DPROGVERSION=\"$(pkgversion)\" -c -o $@ $<
   27 
   28 %.o : %.cc
   29 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
   30 
   31 $(objs)        : Makefile
   32 arg_parser.o   : arg_parser.h
   33 decoder.o      : lzip.h decoder.h
   34 encoder_base.o : lzip.h encoder_base.h
   35 encoder.o      : lzip.h encoder_base.h encoder.h
   36 fast_encoder.o : lzip.h encoder_base.h fast_encoder.h
   37 list.o         : lzip.h lzip_index.h
   38 lzip_index.o   : lzip.h lzip_index.h
   39 main.o         : arg_parser.h lzip.h decoder.h encoder_base.h encoder.h fast_encoder.h
   40 
   41 
   42 doc : info man
   43 
   44 info : $(VPATH)/doc/$(pkgname).info
   45 
   46 $(VPATH)/doc/$(pkgname).info : $(VPATH)/doc/$(pkgname).texi
   47 	cd $(VPATH)/doc && makeinfo $(pkgname).texi
   48 
   49 man : $(VPATH)/doc/$(progname).1
   50 
   51 $(VPATH)/doc/$(progname).1 : $(progname)
   52 	help2man -n 'reduces the size of files' -o $@ ./$(progname)
   53 
   54 Makefile : $(VPATH)/configure $(VPATH)/Makefile.in
   55 	./config.status
   56 
   57 check : all
   58 	@$(VPATH)/testsuite/check.sh $(VPATH)/testsuite $(pkgversion)
   59 
   60 install : install-bin install-info install-man
   61 install-strip : install-bin-strip install-info install-man
   62 install-compress : install-bin install-info-compress install-man-compress
   63 install-strip-compress : install-bin-strip install-info-compress install-man-compress
   64 
   65 install-bin : all
   66 	if [ ! -d "$(DESTDIR)$(bindir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(bindir)" ; fi
   67 	$(INSTALL_PROGRAM) ./$(progname) "$(DESTDIR)$(bindir)/$(progname)"
   68 
   69 install-bin-strip : all
   70 	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install-bin
   71 
   72 install-info :
   73 	if [ ! -d "$(DESTDIR)$(infodir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(infodir)" ; fi
   74 	-rm -f "$(DESTDIR)$(infodir)/$(pkgname).info"*
   75 	$(INSTALL_DATA) $(VPATH)/doc/$(pkgname).info "$(DESTDIR)$(infodir)/$(pkgname).info"
   76 	-if $(CAN_RUN_INSTALLINFO) ; then \
   77 	  install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$(pkgname).info" ; \
   78 	fi
   79 
   80 install-info-compress : install-info
   81 	lzip -v -9 "$(DESTDIR)$(infodir)/$(pkgname).info"
   82 
   83 install-man :
   84 	if [ ! -d "$(DESTDIR)$(mandir)/man1" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" ; fi
   85 	-rm -f "$(DESTDIR)$(mandir)/man1/$(progname).1"*
   86 	$(INSTALL_DATA) $(VPATH)/doc/$(progname).1 "$(DESTDIR)$(mandir)/man1/$(progname).1"
   87 
   88 install-man-compress : install-man
   89 	lzip -v -9 "$(DESTDIR)$(mandir)/man1/$(progname).1"
   90 
   91 uninstall : uninstall-man uninstall-info uninstall-bin
   92 
   93 uninstall-bin :
   94 	-rm -f "$(DESTDIR)$(bindir)/$(progname)"
   95 
   96 uninstall-info :
   97 	-if $(CAN_RUN_INSTALLINFO) ; then \
   98 	  install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$(pkgname).info" ; \
   99 	fi
  100 	-rm -f "$(DESTDIR)$(infodir)/$(pkgname).info"*
  101 
  102 uninstall-man :
  103 	-rm -f "$(DESTDIR)$(mandir)/man1/$(progname).1"*
  104 
  105 dist : doc
  106 	ln -sf $(VPATH) $(DISTNAME)
  107 	tar -Hustar --owner=root --group=root -cvf $(DISTNAME).tar \
  108 	  $(DISTNAME)/AUTHORS \
  109 	  $(DISTNAME)/COPYING \
  110 	  $(DISTNAME)/ChangeLog \
  111 	  $(DISTNAME)/INSTALL \
  112 	  $(DISTNAME)/Makefile.in \
  113 	  $(DISTNAME)/NEWS \
  114 	  $(DISTNAME)/README \
  115 	  $(DISTNAME)/configure \
  116 	  $(DISTNAME)/doc/$(progname).1 \
  117 	  $(DISTNAME)/doc/$(pkgname).info \
  118 	  $(DISTNAME)/doc/$(pkgname).texi \
  119 	  $(DISTNAME)/*.h \
  120 	  $(DISTNAME)/*.cc \
  121 	  $(DISTNAME)/testsuite/check.sh \
  122 	  $(DISTNAME)/testsuite/test.txt \
  123 	  $(DISTNAME)/testsuite/fox.lz \
  124 	  $(DISTNAME)/testsuite/fox_*.lz \
  125 	  $(DISTNAME)/testsuite/test.txt.lz \
  126 	  $(DISTNAME)/testsuite/test_em.txt.lz
  127 	rm -f $(DISTNAME)
  128 	lzip -v -9 $(DISTNAME).tar
  129 
  130 clean :
  131 	-rm -f $(progname) $(objs)
  132 
  133 distclean : clean
  134 	-rm -f Makefile config.status *.tar *.tar.lz