Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 868 | Go to most recent revision | 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
 
867 liveuser 7
#如果有參數 $(INSTALL) ,亦即 "make install INSTALL=" 後面的內容.
858 liveuser 8
#就新增指定只要安裝 library 就好,不需要安裝服務、執行檔到系統.
9
ifdef INSTALL
10
	LIBONLYpn := --libonly
11
	LIBONLYpv := yes
12
endif
13
 
868 liveuser 14
#設置為複製模式
15
COPYMODE := --mode cp
16
 
871 liveuser 17
#make install
18
#": install"代表會檢查同目錄下有無要執行的install.php檔案.
867 liveuser 19
#$(DESTDIR) 為要安裝到的路徑,亦即 "make install DESTDIRpn=--rootPath DESTDIR=" 後面的內容.
20
#$(LIBONLYpv) 為是否只安裝函式庫,不需要設定檔跟執行檔案,亦即 "make install libonly=yes".
21
#--mode cp 為強制用複製檔案的方式,不要透過軟連結.
856 liveuser 22
install: install.php
868 liveuser 23
	./install.php $(DESTDIRpn) $(DESTDIR) $(LIBONLYpn) $(LIBONLYpv) $(COPYMODE)