⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 使用Mail发送传真的程序
💻
字号:
# --------------------------------------------------------------------#		path definitions# --------------------------------------------------------------------# where can I put the FaxMail wrapper and the tryfax executableINSTALLBINPATH = /usr/local/bin# where can I put the FaxMail manualINSTALLMANPATH = /usr/local/man# where can I put the FaxMail info page.  If you don't have gnu info,# you can set this to /tmp or something.  If you do, remember to add# in an entry to the `dir' file.INSTALLINFOPATH = /usr/info# what is the toplevel FaxMail directory. # Contains the coverage list and FaxMail.tcl script.FAXMAIL_DIR = /usr/local/lib/FaxMail# external program locations# where can I find wish WISH_CMD = /usr/bin/wish# where can I find smail or sendmailMAIL_CMD = /usr/lib/sendmail# where can I store temporary filesTMP_DIR = /tmp# --------------------------------------------------------------------#		tools, flags, libraries etc.# --------------------------------------------------------------------MAKE = makeINSTALL = install# where can I find a bourne shellSHELL = /bin/shCC = ccCFLAGS  = LDFLAGS =# Uncomment the following line if linking of tryfax fails.#LDFLAGS = -lresolv# --------------------------------------------------------------------#		END OF USER CONFIGURATION OPTIONS#	You shouldn't need to change anything from here on.# --------------------------------------------------------------------FAXBIN = $(INSTALLBINPATH)/FaxMailINSTALLBINMODE = 755INSTALLMANMODE = 644TARGET = allSUBSYSTEMS = FaxMail tryfax# The regular source and header files.SOURCES = FaxMail.1 FaxMail.tcl tryfax.c cover.lst# The derived files. All files, that are autamatically produced during# a build process should be listed here.OBJECTS = tryfax FaxMailall:	tryfax faxchk checked	echo '#!$(WISH_CMD) -f' > FaxMail.tmp	grep -v "/bin/wish -f" FaxMail.tcl >> FaxMail.tmp	mv FaxMail.tmp FaxMail.tcl	chmod $(INSTALLBINMODE) FaxMail.tcl	@echo "Creating FaxMail executable."	echo "#!$(SHELL) -f" > FaxMail	echo "./FaxMail.tcl \"$(MAIL_CMD)\" \"./tryfax\" \"./cover.lst\" \"$(TMP_DIR)\" " >> FaxMail	chmod $(INSTALLBINMODE) FaxMailtryfax: tryfax.c	@echo "compiling tryfax program...";	$(CC) $(CFLAGS) -o tryfax tryfax.c $(LDFLAGS)# This rule checks supplied information and creates the file `checked'# if satisfactoryfaxchk: 	@touch checked;	@echo "checking wish interpreter..."; 	@if [ -x $(WISH_CMD) ]; then : ; else \		echo "Wish interpreter not found at $(WISH_CMD).";\		echo "Please check location and try again."; \		touch checked;\		rm checked;\	fi;	@echo "checking mailer exists..."; 	@if [ -x $(MAIL_CMD) ]; then : ; else \		echo "Mailer not found at $(MAIL_CMD).";\		echo "Please check location and try again."; \	fi;	@echo "checking temp directory..."; 	@if [ -w $(TMP_DIR) ]; then : ; else \		echo "Temp directory $(TMP_DIR) not writeable.";\		echo "Please check permissions and try again."; \		touch checked;\		rm checked;\	fiinstall: tryfax faxchk checked	mkdir -p $(FAXMAIL_DIR) 	@echo "Copying FaxMail.tcl to $(FAXMAIL_DIR)......."	@cp FaxMail.tcl $(FAXMAIL_DIR)	@chmod $(INSTALLBINMODE) $(FAXMAIL_DIR)/FaxMail.tcl	@echo "Copying tryfax to $(INSTALLBINPATH)......."	@cp tryfax $(INSTALLBINPATH)	@chmod $(INSTALLBINMODE) $(INSTALLBINPATH)/tryfax	@echo "Copying cover.lst to $(FAXMAIL_DIR)......."	@cp cover.lst $(FAXMAIL_DIR)	@chmod $(INSTALLMANMODE) $(FAXMAIL_DIR)/cover.lst	@echo "Creating FaxMail executable."	@echo "#!$(SHELL) -f" > FaxMail	@echo "$(FAXMAIL_DIR)/FaxMail.tcl \"$(MAIL_CMD)\" \"$(INSTALLBINPATH)/tryfax\" \"$(FAXMAIL_DIR)/cover.lst\" \"$(TMP_DIR)\" " >> FaxMail	@chmod $(INSTALLBINMODE) FaxMail	@echo "Copying FaxMail to $(INSTALLBINPATH)......."	@cp FaxMail $(INSTALLBINPATH)	@chmod $(INSTALLBINMODE) $(FAXBIN)	@echo "Installing FaxMail manual and info pages."	@cp FaxMail.1 $(INSTALLMANPATH)/man1/FaxMail.1	@chmod $(INSTALLMANMODE) $(INSTALLMANPATH)/man1/FaxMail.1	@cp FaxMail.info $(INSTALLINFOPATH)/FaxMail.info	@chmod $(INSTALLMANMODE) $(INSTALLINFOPATH)/FaxMail.info	@rm checkedclean:	rm tryfax	rm checked

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -