Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 867 | Rev 871 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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