home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lzo100.zip / lzo-1.00 / Makefile.mfx < prev    next >
Makefile  |  1997-07-13  |  3KB  |  109 lines

  1. #
  2. # Copyright (C) 1996, 1997 Markus F.X.J. Oberhumer
  3. #
  4.  
  5. PACKAGE := lzo
  6. VERSION := 1.00
  7.  
  8. CAT  := cat
  9. FIND := find
  10. PERL := perl
  11.  
  12. default:
  13.  
  14.  
  15. # /***********************************************************************
  16. # // special build targets
  17. # ************************************************************************/
  18.  
  19. djgpp2:
  20.     b\\dos32\\dj2.bat
  21.  
  22.  
  23. # /***********************************************************************
  24. # // distribution and packing
  25. # ************************************************************************/
  26.  
  27. PACK_VERSION := $(subst .,,$(VERSION))
  28.  
  29. PACK_BZIP  := $(PACKAGE)-$(PACK_VERSION).tbz
  30. PACK_GZIP  := $(PACKAGE)-$(PACK_VERSION).tgz
  31. PACK_RAR   := $(PACKAGE)-$(PACK_VERSION).rar
  32. PACK_RKIVE := $(PACKAGE)-$(PACK_VERSION).rkv
  33. PACK_UUE   := $(PACKAGE)-$(PACK_VERSION).uue
  34. PACK_TAR   := $(PACKAGE)-$(PACK_VERSION).tar
  35. PACK_ZIP   := $(PACKAGE)-$(PACK_VERSION).zip
  36.  
  37. FILES_LST  := files.tmp
  38. FFILES_LST := $(PACKAGE)-$(VERSION)/$(FILES_LST)
  39.  
  40.  
  41. .PHONY: $(FILES_LST) distfiles dist
  42. .PHONY: bzip gzip rar rkive tar uue zip zip0
  43.  
  44.  
  45. $(FILES_LST):
  46.     ($(FIND) ../$(PACKAGE)-$(VERSION) -type f -print | $(PERL) maint/util/mkdist.pl -nz -f maint/util/dist.lst -o $@)
  47.  
  48. distfiles: $(FILES_LST)
  49.  
  50. dist: gzip
  51.  
  52.  
  53. bzip: $(FILES_LST)
  54.     $(CAT) $< | (cd .. && tar -cvf- -T- | bzip > $(PACK_BZIP))
  55.  
  56. gzip: $(FILES_LST)
  57.     $(CAT) $< | (cd .. && tar -cvf- -T- | gzip -9 > $(PACK_GZIP))
  58.  
  59. rar: $(FILES_LST)
  60.     -$(RM) ../$(PACK_RAR)
  61.     (cd .. && rar a -s -m5 -tl $(PACK_RAR) @$(FFILES_LST))
  62.  
  63. rkive: $(FILES_LST)
  64.     -$(RM) ../$(PACK_RKIVE)
  65.     (cd .. && rkive -c -mt $(PACK_RKIVE) @$(FFILES_LST))
  66.  
  67. tar: $(FILES_LST)
  68.     $(CAT) $< | (cd .. && tar -cvf $(PACK_TAR) -T-)
  69.  
  70. uue: gzip
  71.     (cd .. && uuencode $(PACK_GZIP) $(PACK_GZIP) > $(PACK_UUE))
  72.  
  73. zip: $(FILES_LST)
  74.     -$(RM) ../$(PACK_ZIP)
  75.     $(CAT) $< | (cd .. && zip $(PACK_ZIP) -oD9 -@)
  76.  
  77. zip0: $(FILES_LST)
  78.     -$(RM) ../$(PACK_ZIP)
  79.     $(CAT) $< | (cd .. && zip $(PACK_ZIP) -oD0 -@)
  80.  
  81.  
  82.  
  83. # /***********************************************************************
  84. # // special maintainer targets
  85. # ************************************************************************/
  86.  
  87. .PHONY: chmod grep mem
  88.  
  89. chmod:
  90.     -chmod a-w COPYING
  91.     -chmod a+x b/*.sh util/*.pl util/*.sh
  92.  
  93. grep:
  94.     mfxgrep.pl -Xc   -e '\t' include/*.h doc/*
  95.     mfxgrep.pl -Xc   -e '[\z\t]\q' include/*.h
  96.     mfxgrep.pl -Xc   -e '[\z\t]\q' config*.in
  97.     mfxgrep.pl -Xc   -e '[\z\t]\q' -r "-F*.am:*.lst:*.m4:*.mfx"
  98.     mfxgrep.pl -Xc   -e '[\z\t]\q' -r b doc
  99.     mfxgrep.pl -Xc   -e '\%\w+(\s|\q)' -r b
  100.     mfxgrep.pl -Xci  -e '\s*set\s+.*=.*=' -r b
  101.     mfxgrep.pl -XlcB -e '\r'
  102.     mfxgrep.pl -XlcB -e '\r' -r acconfig doc examples
  103.     mfxgrep.pl -XlcB -e '\r' -r include minilzo src util tests
  104.  
  105. mem:
  106.     mem
  107.  
  108.  
  109.