2016-05-26 76 views
1

可以在端口目錄之外的FreeBSD端口上調用make?即而不使用cd命令。在端口目錄之外的FreeBSD端口上調用make

要contextualise,而下面可以做:cd /usr/ports/www/apache24 && sudo make config-recursive install distclean,像這樣的僞代碼將是首選:sudo make config-recursive install distclean -p /usr/ports/www/apache24

謝謝

+2

是否'-C'論點在這裏提出幫你? 'make -C/usr/ports/www/apache24 config-recursive install distclean'? –

+0

是的,非常感謝。如果你想把這個作爲答案,所以我可以標記它的權利? – willsquire

回答

2

這是什麼make-C option是。

-C directory 
    Change to directory before reading the makefiles or doing any- 
    thing else. If multiple -C options are specified, each is inter- 
    preted relative to the previous one: -C/-C etc is equivalent to 
    -C /etc. 

所以,你想用這個:

make -C /usr/ports/www/apache24 config-recursive install distclean