subdirs.t
来自「一个免费的SMART CARD OS系统。」· T 代码 · 共 40 行
T
40 行
##############################################################################!#! This is a tmake template for creating a makefile that invokes make in#! sub directories - for Unix.#!#${ StdInit(); Project('MAKEFILE') || Project('MAKEFILE = Makefile'); Project('TMAKE') || Project('TMAKE = tmake');#$}#!# Makefile for building targets in sub directories.# Generated by tmake at #$ Now();# Project: #$ Expand("PROJECT");# Template: #$ Expand("TEMPLATE");#############################################################################MAKEFILE= #$ Expand("MAKEFILE");TMAKE = #$ Expand("TMAKE");SUBDIRS = #$ ExpandList("SUBDIRS");all: $(SUBDIRS)$(SUBDIRS): tmake_all FORCE cd $@; $(MAKE)#$ TmakeSelf();tmake_all:#${# $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; if [ -e `basename $$i`.pro ] ; then pro=`basename $$i`.pro ; else pro=makefile.pro ; fi ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done';#$}clean release debug: for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; doneFORCE:
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?