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 >
Wrap
Makefile
|
1997-07-13
|
3KB
|
109 lines
#
# Copyright (C) 1996, 1997 Markus F.X.J. Oberhumer
#
PACKAGE := lzo
VERSION := 1.00
CAT := cat
FIND := find
PERL := perl
default:
# /***********************************************************************
# // special build targets
# ************************************************************************/
djgpp2:
b\\dos32\\dj2.bat
# /***********************************************************************
# // distribution and packing
# ************************************************************************/
PACK_VERSION := $(subst .,,$(VERSION))
PACK_BZIP := $(PACKAGE)-$(PACK_VERSION).tbz
PACK_GZIP := $(PACKAGE)-$(PACK_VERSION).tgz
PACK_RAR := $(PACKAGE)-$(PACK_VERSION).rar
PACK_RKIVE := $(PACKAGE)-$(PACK_VERSION).rkv
PACK_UUE := $(PACKAGE)-$(PACK_VERSION).uue
PACK_TAR := $(PACKAGE)-$(PACK_VERSION).tar
PACK_ZIP := $(PACKAGE)-$(PACK_VERSION).zip
FILES_LST := files.tmp
FFILES_LST := $(PACKAGE)-$(VERSION)/$(FILES_LST)
.PHONY: $(FILES_LST) distfiles dist
.PHONY: bzip gzip rar rkive tar uue zip zip0
$(FILES_LST):
($(FIND) ../$(PACKAGE)-$(VERSION) -type f -print | $(PERL) maint/util/mkdist.pl -nz -f maint/util/dist.lst -o $@)
distfiles: $(FILES_LST)
dist: gzip
bzip: $(FILES_LST)
$(CAT) $< | (cd .. && tar -cvf- -T- | bzip > $(PACK_BZIP))
gzip: $(FILES_LST)
$(CAT) $< | (cd .. && tar -cvf- -T- | gzip -9 > $(PACK_GZIP))
rar: $(FILES_LST)
-$(RM) ../$(PACK_RAR)
(cd .. && rar a -s -m5 -tl $(PACK_RAR) @$(FFILES_LST))
rkive: $(FILES_LST)
-$(RM) ../$(PACK_RKIVE)
(cd .. && rkive -c -mt $(PACK_RKIVE) @$(FFILES_LST))
tar: $(FILES_LST)
$(CAT) $< | (cd .. && tar -cvf $(PACK_TAR) -T-)
uue: gzip
(cd .. && uuencode $(PACK_GZIP) $(PACK_GZIP) > $(PACK_UUE))
zip: $(FILES_LST)
-$(RM) ../$(PACK_ZIP)
$(CAT) $< | (cd .. && zip $(PACK_ZIP) -oD9 -@)
zip0: $(FILES_LST)
-$(RM) ../$(PACK_ZIP)
$(CAT) $< | (cd .. && zip $(PACK_ZIP) -oD0 -@)
# /***********************************************************************
# // special maintainer targets
# ************************************************************************/
.PHONY: chmod grep mem
chmod:
-chmod a-w COPYING
-chmod a+x b/*.sh util/*.pl util/*.sh
grep:
mfxgrep.pl -Xc -e '\t' include/*.h doc/*
mfxgrep.pl -Xc -e '[\z\t]\q' include/*.h
mfxgrep.pl -Xc -e '[\z\t]\q' config*.in
mfxgrep.pl -Xc -e '[\z\t]\q' -r "-F*.am:*.lst:*.m4:*.mfx"
mfxgrep.pl -Xc -e '[\z\t]\q' -r b doc
mfxgrep.pl -Xc -e '\%\w+(\s|\q)' -r b
mfxgrep.pl -Xci -e '\s*set\s+.*=.*=' -r b
mfxgrep.pl -XlcB -e '\r'
mfxgrep.pl -XlcB -e '\r' -r acconfig doc examples
mfxgrep.pl -XlcB -e '\r' -r include minilzo src util tests
mem:
mem