Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 871 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
867 liveuser 1
#如果有參數 $(DESTDIR) ,亦即 "make install DESTDIR=" 後面的內容.
865 liveuser 2
#就在前面新增要指定安裝路徑的參數名稱 "--rootPath"
858 liveuser 3
ifdef DESTDIR
865 liveuser 4
	DESTDIRpn := --rootPath
858 liveuser 5
endif
6
 
868 liveuser 7
#設置為複製模式
8
COPYMODE := --mode cp
9
 
871 liveuser 10
#make install
11
#": install"代表會檢查同目錄下有無要執行的install.php檔案.
867 liveuser 12
#$(DESTDIR) 為要安裝到的路徑,亦即 "make install DESTDIRpn=--rootPath DESTDIR=" 後面的內容.
13
#--mode cp 為強制用複製檔案的方式,不要透過軟連結.
856 liveuser 14
install: install.php
938 liveuser 15
	./install.php $(DESTDIRpn) $(DESTDIR) $(COPYMODE)