summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 20fd721..03fe38c 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -590,6 +590,12 @@ function pkg_status {
function pkg_refresh {
check_installed $1
cd $PDIR/$1
+ if [[ -r Makefile ]] {
+ clear_line
+ info "$1: re-building with make\n"
+ make clean
+ make
+ }
populate_collected $1
checklinks $CL_OPTIONS
check_prereqs $1