📄 makefile
字号:
PATH=.:$$PATH time -p foo2zjs-wrapper -c -C2 testpage.ps > $@ @want="3d3b6fc08d9a1c9f80a99fec867596df $@"; got=`md5sum $@`; \ #[ "$$want" = "$$got" ] || \ # { echo "*** Test failure, got $$got"; exit 1; }testpage.zc3: testpage.ps foo2zjs-wrapper foo2zjs Makefile FRC PATH=.:$$PATH time -p foo2zjs-wrapper -c -C3 testpage.ps > $@ @want="3d3b6fc08d9a1c9f80a99fec867596df $@"; got=`md5sum $@`; \ #[ "$$want" = "$$got" ] || \lj1000.zm: testpage.ps foo2zjs-wrapper foo2zjs Makefile FRC # # Monochrome test page for HP LJ1000 PATH=.:$$PATH time -p foo2zjs-wrapper -b gs -r600x600 -P testpage.ps >$@ @want1="e458bacac57331ec5206cacd0181fe8a $@"; \ want2="ee7ff564b881ce9ee44e47f1dbede560 $@"; \ got=`md5sum $@`; [ "$$want1" = "$$got" -o "$$want2" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }lj1020.zm: testpage.ps foo2zjs-wrapper foo2zjs Makefile FRC # # Monochrome test page for HP LJ1020 PATH=.:$$PATH time -p foo2zjs-wrapper -b gs -r600x600 -P -z1 \ testpage.ps >$@ @want1="391f91cd50781f733cfa7df44272da09 $@"; \ want2="1a33dfc460a5725bb7dbc34a7342b092 $@"; \ got=`md5sum $@`; [ "$$want1" = "$$got" -o "$$want2" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }## foo2hp Regression tests#testhp: lj2600.zm1 lj2600.zc1lj2600.zm1: testpage.ps foo2hp2600-wrapper foo2hp Makefile FRC # # Monochrome test page for HP 2600n (1-bit) PATH=.:$$PATH time -p foo2hp2600-wrapper testpage.ps > $@ @want1="11888137a72c4fd0ab1f791d1600fba0 $@"; \ want2="282e09f3981560801842cc2b1c9bff0c $@"; \ got=`md5sum $@`; [ "$$want1" = "$$got" -o "$$want2" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }lj2600.zc1: testpage.ps foo2hp2600-wrapper foo2hp Makefile FRC # # Color test page for HP 2600n (1-bit) PATH=.:$$PATH time -p foo2hp2600-wrapper -c testpage.ps > $@ @want1="a20f0d33017200d64ce9aec9fc0111af $@"; \ want2="2e414ac1af09f183435ae105e7bb61cd $@"; \ got=`md5sum $@`; [ "$$want1" = "$$got" -o "$$want2" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }## foo2oak Regression tests#testoak: pprtest-0.oak pprtest-1.oak pprtest-2.oak pprtest-3.oakpprtest-0.oak: FRC # # 1-bit Monochrome test page for OAKT PATH=.:$$PATH foo2oak-wrapper -b1 -D12345678 pprtest.ps > $@ @want="fbd4c1a560985a6ad47ff23b018c7ce8 $@"; got=`md5sum $@`; \ [ "$$want" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }pprtest-1.oak: FRC # # 2-bit Monochrome test page for OAKT PATH=.:$$PATH foo2oak-wrapper -b2 -D12345678 pprtest.ps > $@ @want="bec9a24ee1ce0d388b773f83609a4d01 $@"; got=`md5sum $@`; \ [ "$$want" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }pprtest-2.oak: FRC # # 1-bit color test page for OAKT PATH=.:$$PATH foo2oak-wrapper -c -b1 -D12345678 pprtest.ps > $@ @want="c714bcd69fe5f3b2b257d7435eb938d1 $@"; got=`md5sum $@`; \ [ "$$want" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }pprtest-3.oak: FRC # # 2-bit color test page for OAKT PATH=.:$$PATH foo2oak-wrapper -c -b2 -D12345678 pprtest.ps > $@ @want="ed89abcd873979bc9337e02263511964 $@"; got=`md5sum $@`; \ [ "$$want" = "$$got" ] || \ { echo "*** Test failure, got $$got"; exit 1; }## icc2ps regression tests#ICC2PS=./icc2ps/foo2zjs-icc2psicctest: for g in *.icm; do \ for i in 0 1 2 3; do \ $(ICC2PS) -o $$g -t$$i \ | sed '/Created:/d' > $$g.$$i.ps; \ done; \ done## Make phony print devices for testing full spooler interface without printing#tmpdev: DEV=/tmp/OAK; > $$DEV; chmod 666 $$DEV DEV=/tmp/OAKCM; > $$DEV; chmod 666 $$DEV DEV=/tmp/testfile; > $$DEV; chmod 666 $$DEV## Test files for debugging#testpage.pbm: testpage.ps Makefilexxx.zc: FRCxxx.zm: FRC## PPD files#ppd: # Did you do a "make install"???? ./getweb ppd## Manpage generation. No, I am not interested in "info" files or# HTML documentation.#man: $(MANPAGES).1in.1: -rm -f $*.1 modtime() { $(MODTIME); }; \ MODpage=`modtime $*.1in`; \ MODver=$(VERSION); \ sed < $*.1in > $*.1 \ -e "s@\$${URLOAK}@$(URLOAK)@" \ -e "s@\$${URLZJS}@$(URLZJS)@" \ -e "s@\$${URLHP}@$(URLHP)@" \ -e "s@\$${URLXQX}@$(URLXQX)@" \ -e "s@\$${URLLAVA}@$(URLLAVA)@" \ -e "s@\$${URLQPDL}@$(URLQPDL)@" \ -e "s/\$${MODpage}/$$MODpage/" \ -e "s/\$${MODver}/$$MODver/" chmod -w $*.1install-man: man # # Install manual pages # install -d -m 755 $(MANDIR) install -d -m 755 $(MANDIR)/man1/ install -c -m 644 foo2zjs.1 $(MANDIR)/man1/ install -c -m 644 foo2zjs-wrapper.1 $(MANDIR)/man1/ install -c -m 644 zjsdecode.1 $(MANDIR)/man1/ install -c -m 644 foo2oak.1 $(MANDIR)/man1/ install -c -m 644 foo2oak-wrapper.1 $(MANDIR)/man1/ install -c -m 644 oakdecode.1 $(MANDIR)/man1/ install -c -m 644 foo2hp.1 $(MANDIR)/man1/ install -c -m 644 foo2hp2600-wrapper.1 $(MANDIR)/man1/ install -c -m 644 xqxdecode.1 $(MANDIR)/man1/ install -c -m 644 foo2xqx.1 $(MANDIR)/man1/ install -c -m 644 foo2xqx-wrapper.1 $(MANDIR)/man1/ install -c -m 644 lavadecode.1 $(MANDIR)/man1/ install -c -m 644 foo2lava.1 $(MANDIR)/man1/ install -c -m 644 foo2lava-wrapper.1 $(MANDIR)/man1/ install -c -m 644 qpdldecode.1 $(MANDIR)/man1/ install -c -m 644 foo2qpdl.1 $(MANDIR)/man1/ install -c -m 644 foo2qpdl-wrapper.1 $(MANDIR)/man1/ install -c -m 644 opldecode.1 $(MANDIR)/man1/doc: README INSTALL manual.pdfinstall-doc: doc # # Install documentation # install -d -m 755 $(DOCDIR) install -c -m 644 manual.pdf $(DOCDIR) install -c -m 644 COPYING $(DOCDIR) install -c -m 644 INSTALL $(DOCDIR) install -c -m 644 INSTALL.osx $(DOCDIR) install -c -m 644 README $(DOCDIR) install -c -m 644 ChangeLog $(DOCDIR)GROFF=/usr/local/test/bin/groffGROFF=groffmanual.pdf: $(MANPAGES) -$(GROFF) -t -man $(MANPAGES) | ps2pdf - $@README: README.in rm -f $@ sed < $@.in > $@ \ -e "s@\$${URLOAK}@$(URLOAK)@" \ -e "s@\$${URLZJS}@$(URLZJS)@" chmod -w $@INSTALL: INSTALL.in rm -f $@ sed < $@.in > $@ \ -e "s@\$${URLOAK}@$(URLOAK)@" \ -e "s@\$${URLZJS}@$(URLZJS)@" chmod -w $@## Check db files against current foomatic to see if any changes# need to be made or reported.#MYFOODB=../foomatic/foomatic-db/db/sourcecheckdb: @for dir in driver printer opt; do \ for file in foomatic-db/$$dir/*.xml ; do \ ofile=$(MYFOODB)/$$dir/`basename $$file`; \ : echo diff -N -u $$ofile $$file; \ if [ ! -f $$ofile ]; then \ ofile=/dev/null; \ fi; \ diff -N -u $$ofile $$file; \ done \ done## Mail my latest foomatic-db entries to Till.#WHO=rick.richardson@comcast.netWHO=till.kamppeter@gmx.netmaildb: $(MAKE) -s checkdb > patch.db echo "Here is a patch for the foomatic-db foo2zjs/foo2oak entries." | \ mutt -a patch.db \ -s "foo2zjs/foo2oak - patch for foomatic database" $(WHO)## Create tarball#tar: HERE=`basename $$PWD`; \ /bin/ls $(FILES) | \ sed -e "s?^?$$HERE/?" | \ (cd ..; tar -c -z -f $$HERE/$$HERE.tar.gz -T-)## Populate the web site# make web# make webworld# make webextra#URLOAK=http://foo2oak.rkkda.comURLZJS=http://foo2zjs.rkkda.comURLHP=http://foo2hp.rkkda.comURLXQX=http://foo2xqx.rkkda.comURLLAVA=http://foo2lava.rkkda.comURLQPDL=http://foo2qpdl.rkkda.comFTPSITE=~/.ncftp-websitefoo2zjs.html foo2oak.html foo2hp.html \ foo2xqx.html foo2lava.html foo2qpdl.html: thermometer.gif FRC rm -f $@ HERE=`basename $$PWD`; \ TZ=`date | cut -c 21-24`; \ modtime() { $(MODTIME); }; \ MODindex=`modtime $@.in`; \ MODtarball=`modtime $$HERE.tar.gz`; \ PRODUCT=`basename $@ .html`; \ ./includer-html $@.in | sed > $@ \ -e "s@\$${URLOAK}@$(URLOAK)@g" \ -e "s@\$${URLZJS}@$(URLZJS)@g" \ -e "s@\$${URLHP}@$(URLHP)@g" \ -e "s@\$${URLXQX}@$(URLXQX)@g" \ -e "s@\$${URLLAVA}@$(URLLAVA)@g" \ -e "s@\$${URLQPDL}@$(URLQPDL)@g" \ -e "s@\$${PRODUCT}@$$PRODUCT@g" \ -e "s/\$${MODindex}/$$MODindex $$TZ/" \ -e "s/\$${MODtarball}/$$MODtarball $$TZ/" chmod -w $@web: test tar manual.pdf webindex ncftpput -m -f $(FTPSITE) foo2zjs \ ChangeLog INSTALL manual.pdf *.tar.gz;webt: tar manual.pdf webindex ncftpput -m -f $(FTPSITE) foo2zjs \ ChangeLog INSTALL manual.pdf *.tar.gz;webworld: web webpicswebindex: INSTALL zjsindex oakindex hpindex xqxindex lavaindex \ qpdlindex oakindexwebpics: redhat suse ubuntu mandriva fedorazjsindex: foo2zjs.html archzjs.gif thermometer.gif ln -sf foo2zjs.html index.html ncftpput -m -f $(FTPSITE) foo2zjs \ index.html style.css archzjs.gif thermometer.gif \ INSTALL INSTALL.osx zjsfavicon.png;oakindex: foo2oak.html archoak.gif thermometer.gif ln -sf foo2oak.html index.html ncftpput -m -f $(FTPSITE) foo2oak \ index.html style.css archoak.gif thermometer.gif \ INSTALL;hpindex: foo2hp.html archhp.gif thermometer.gif ln -sf foo2hp.html index.html ncftpput -m -f $(FTPSITE) foo2hp \ index.html style.css archhp.gif thermometer.gif \ INSTALL hpfavicon.png;xqxindex: foo2xqx.html archxqx.gif thermometer.gif ln -sf foo2xqx.html index.html ncftpput -m -f $(FTPSITE) foo2xqx \ index.html style.css archxqx.gif thermometer.gif \ INSTALL xqxfavicon.png;lavaindex: foo2lava.html archlava.gif thermometer.gif ln -sf foo2lava.html index.html ncftpput -m -f $(FTPSITE) foo2lava \ index.html style.css archlava.gif thermometer.gif \ INSTALL lavafavicon.png;qpdlindex: foo2qpdl.html archqpdl.gif thermometer.gif ln -sf foo2qpdl.html index.html ncftpput -m -f $(FTPSITE) foo2qpdl \ index.html style.css archqpdl.gif thermometer.gif \ INSTALL qpdlfavicon.png;# RedHatredhat: FRC cd redhat; $(MAKE) web FTPSITE=$(FTPSITE)# Fedora Core 6+fedora: FRC cd fedora; $(MAKE) web FTPSITE=$(FTPSITE)suse: FRC cd suse; $(MAKE) web FTPSITE=$(FTPSITE)ubuntu: FRC cd ubuntu; $(MAKE) web FTPSITE=$(FTPSITE)mandriva: FRC cd mandriva; $(MAKE) web FTPSITE=$(FTPSITE)## Extra files from web#webextra: webicm webfwwebicm: icm/km2430.tar.gz icm/hpclj2600n.tar.gz icm/km2530.tar.gz \ icm/samclp300.tar.gz ncftpput -m -f $(FTPSITE) foo2zjs icm/km2430.tar.gz; ncftpput -m -f $(FTPSITE) foo2hp icm/hpclj2600n.tar.gz; ncftpput -m -f $(FTPSITE) foo2lava icm/km2530.tar.gz; ncftpput -m -f $(FTPSITE) foo2qpdl icm/samclp300.tar.gz;icm/km2430.tar.gz: FRC cd icm; tar -c -z -f ../$@ km2430*.icmicm/hpclj2600n.tar.gz: FRC cd icm; tar -c -z -f ../$@ hpclj2600*.icmicm/km2530.tar.gz: FRC cd icm; tar -c -z -f ../$@ km2530*.icmicm/samclp300.tar.gz: FRC cd icm; tar -c -z -f ../$@ samclp300*.icmwebfw: firmware/sihp1000.tar.gz \ firmware/sihp1005.tar.gz \ firmware/sihp1018.tar.gz \ firmware/sihp1020.tar.gz \ $(NULL) ncftpput -m -f $(FTPSITE) foo2zjs firmware/*.tar.gz;firmware/sihp1000.tar.gz: FRC cd firmware; tar -c -z -f ../$@ sihp1000.imgfirmware/sihp1005.tar.gz: FRC cd firmware; tar -c -z -f ../$@ sihp1005.imgfirmware/sihp1018.tar.gz: FRC cd firmware; tar -c -z -f ../$@ sihp1018.imgfirmware/sihp1020.tar.gz: FRC cd firmware; tar -c -z -f ../$@ sihp1020.imgFRC:## Misc#misc: pksm2bitcmykpksm2bitcmyk: pksm2bitcmyk.c $(CC) $(CFLAGS) pksm2bitcmyk.c -lpbm -o $@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -