Archive-Unzip-Burst
view release on metacpan or search on metacpan
unzip-6.0/unix/Makefile view on Meta::CPAN
@echo "issue the command (as root): pkgadd -d $(PKGDIR)_`uname -p`.pkg"
@echo " "
install: $(MANS)
-$(INSTALL_D) $(BINDIR)
$(INSTALL_PROGRAM) $(UNZIPS) $(BINDIR)
$(INSTALL) unix/zipgrep $(BINDIR)
$(RM) $(BINDIR)/zipinfo$E
$(LN) $(BINDIR)/unzip$E $(BINDIR)/zipinfo$E
-$(INSTALL_D) $(MANDIR)
$(INSTALL) man/funzip.1 $(MANDIR)/funzip.$(manext)
$(INSTALL) man/unzip.1 $(MANDIR)/unzip.$(manext)
$(INSTALL) man/unzipsfx.1 $(MANDIR)/unzipsfx.$(manext)
$(INSTALL) man/zipgrep.1 $(MANDIR)/zipgrep.$(manext)
$(INSTALL) man/zipinfo.1 $(MANDIR)/zipinfo.$(manext)
$(CHMOD) $(BINPERMS) $(INSTALLEDBIN)
$(CHMOD) $(MANPERMS) $(INSTALLEDMAN)
uninstall:
$(RM) $(INSTALLEDBIN) $(INSTALLEDMAN)
# added 10/28/04 EG
flags: unix/configure
sh unix/configure "${CC}" "${CF_NOOPT}" "${IZ_BZIP2}"
# the test zipfile
TESTZIP = testmake.zip
# test some basic features of the build
test: check
check:
@echo '##### This is a Unix-specific target. (Just so you know.)'
@echo '##### Make sure unzip, funzip and unzipsfx are compiled and'
@echo '##### in this directory.'
@if test ! -f ./unzip; then \
echo "##### ERROR: can't find ./unzip"; exit 1; fi
@if test ! -f ./funzip; then \
echo "##### ERROR: can't find ./funzip"; exit 1; fi
@if test ! -f ./unzipsfx; then \
echo "##### ERROR: can't find ./unzipsfx"; exit 1; fi
#
@if test ! -f $(TESTZIP); then \
echo "##### ERROR: can't find test file $(TESTZIP)"; exit 1; fi
#
@echo "##### testing extraction"
@./unzip -bo $(TESTZIP) testmake.zipinfo
@if test ! -f testmake.zipinfo ; then \
echo "##### ERROR: file extraction from $(TESTZIP) failed"; \
exit 1; fi
#
@echo '##### testing zipinfo (unzip -Z)'
@./unzip -Z $(TESTZIP) > testmake.unzip-Z
@if diff testmake.unzip-Z testmake.zipinfo; then echo "OK."; else \
echo "##### WARNING: zipinfo output doesn't match stored version"; \
echo '##### (If the only difference is the file times, compare your'; \
echo '##### timezone with the Central European timezone, which is one'; \
echo '##### hour east of Greenwich but effectively 2 hours east'; \
echo '##### during summer Daylight Savings Time. The upper two'; \
echo '##### lines should correspond to your local time when the'; \
echo '##### files were created, on 19 November 1998 at 10:46pm CET.'; \
echo '##### If the times are consistent, please ignore this warning.)'; \
fi
@$(RM) testmake.unzip-Z testmake.zipinfo
#
@echo '##### testing unzip -d exdir option'
@./unzip -bo $(TESTZIP) -d testun notes
@cat testun/notes
#
@echo '##### testing unzip -o and funzip (ignore funzip warning)'
@./unzip -boq $(TESTZIP) notes -d testun
@./funzip < $(TESTZIP) > testun/notes2
@if diff testun/notes testun/notes2; then true; else \
echo '##### ERROR: funzip output disagrees with unzip'; fi
#
@echo '##### testing unzipsfx (self-extractor)'
@cat unzipsfx $(TESTZIP) > testsfx
@$(CHMOD) 0700 testsfx
@./testsfx -bo notes
@if diff notes testun/notes; then true; else \
echo '##### ERROR: unzipsfx file disagrees with unzip'; fi
@$(RM) testsfx notes testun/notes testun/notes2
@rmdir testun
#
@echo '##### testing complete.'
################################
# INDIVIDUAL MACHINE MAKERULES #
################################
#----------------------------------------------------------------------------
# Generic targets using the configure script to determine configuration.
#----------------------------------------------------------------------------
# Well, try MAKE and see. By now everyone may be happy. 10/28/04 EG
generic: flags # now try autoconfigure first
eval $(MAKE) $(MAKEF) unzips ACONF_DEP=flags `cat flags`
# make $(MAKEF) unzips CF="${CF} `cat flags`"
generic_gcc:
$(MAKE) $(MAKEF) generic CC=gcc IZ_BZIP2="$(IZ_BZIP2)"
# extensions to perform SVR4 package-creation after compilation
generic_pkg: generic svr4package
generic_gccpkg: generic_gcc svr4package
#----------------------------------------------------------------------------
# Old static generic targets (can't assume make utility groks "$(MAKE)")
#----------------------------------------------------------------------------
generic1: unzips # first try if unknown
generic2: unix_make # second try if unknown: hope make is called "make"
make $(MAKEF) unzips CF="$(CF) -DBSD"
generic3: unix_make # third try if unknown: hope make is called "make"
make $(MAKEF) unzips CF="$(CF) -DSYSV"
# Generic build including bzip2 decompression support for unzip.
# Requires presence of the bzip2 sources in subdirectory bzip2.
( run in 0.518 second using v1.01-cache-2.11-cpan-788537b7465 )