Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 865 | Rev 868 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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