Rev 865 | Rev 868 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#如果有參數 $(DESTDIR) ,亦即 "make install DESTDIR=" 後面的內容.#就在前面新增要指定安裝路徑的參數名稱 "--rootPath"ifdef DESTDIRDESTDIRpn := --rootPathendif#如果有參數 $(INSTALL) ,亦即 "make install INSTALL=" 後面的內容.#就新增指定只要安裝 library 就好,不需要安裝服務、執行檔到系統.ifdef INSTALLLIBONLYpn := --libonlyLIBONLYpv := yesendif#make install,#$(DESTDIR) 為要安裝到的路徑,亦即 "make install DESTDIRpn=--rootPath DESTDIR=" 後面的內容.#$(LIBONLYpv) 為是否只安裝函式庫,不需要設定檔跟執行檔案,亦即 "make install libonly=yes".#--mode cp 為強制用複製檔案的方式,不要透過軟連結.install: install.php./install.php $(DESTDIRpn) $(DESTDIR) $(LIBONLYpn) $(LIBONLYpv) --mode cp