Rev 871 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#如果有參數 $(DESTDIR) ,亦即 "make install DESTDIR=" 後面的內容.#就在前面新增要指定安裝路徑的參數名稱 "--rootPath"ifdef DESTDIRDESTDIRpn := --rootPathendif#設置為複製模式COPYMODE := --mode cp#make install#": install"代表會檢查同目錄下有無要執行的install.php檔案.#$(DESTDIR) 為要安裝到的路徑,亦即 "make install DESTDIRpn=--rootPath DESTDIR=" 後面的內容.#--mode cp 為強制用複製檔案的方式,不要透過軟連結.install: install.php./install.php $(DESTDIRpn) $(DESTDIR) $(COPYMODE)