Subversion Repositories qbpwcf-lib(archive)

Rev

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

Rev Author Line No. Line
858 liveuser 1
 
2
#如果有參數 ${DESTDIR} ,亦即 "make install DESTDIR=" 後面的內容.
3
#就在前面新增要指定安裝路徑的參數名稱 "--rootpath"
4
ifdef DESTDIR
5
	DESTDIRpn := --rootpath
6
endif
7
 
8
#如果有參數 ${INSTALL} ,亦即 "make install INSTALL=" 後面的內容.
9
#就新增指定只要安裝 library 就好,不需要安裝服務、執行檔到系統.
10
ifdef INSTALL
11
	LIBONLYpn := --libonly
12
	LIBONLYpv := yes
13
endif
14
 
15
#make install, ${DESTDIR} 為要安裝到的路徑,亦即 "make install DESTDIR=" 後面的內容.
856 liveuser 16
install: install.php
858 liveuser 17
	./install.php $(DESTDIRpn) $(DESTDIR) $(LIBONLYpn) $(LIBONLYpv)