Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 871 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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