0
我想爲每個.sh文件執行將.sh腳本轉換爲.md文件的shell腳本。 目前我接到的makefileMakefile爲文件夾中的每個文件執行腳本
'./myscript' < testB.sh testA.sh >> testB.md testA.md
此輸出,但我想這樣
'./myscript' <testA.sh>> testA.md; './shelltomd' <testB.sh>> testB.md
我想這樣做沒有任何形式的循環,但我不知道如何與解決這樣的輸出僅生成文件:/
我的Makefile
SH_FILES=$(wildcard *.sh)
SHTOMD=$(SH_FILES:.sh=.md)
md:
'./myscript' <$< $(SH_FILES) >>$< $(SHTOMD)
謝謝你您的幫助stackoverflow社區和sry爲我的英語不好:D
thx即解決方案:D – Taito