From a625357fea99a9818e19d8fc8f281c8b53a3b071 Mon Sep 17 00:00:00 2001
From: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca>
Date: Fri, 26 Jun 2020 10:22:24 -0400
Subject: add lastlog

---
 make | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

(limited to 'make')

diff --git a/make b/make
index 7621a6c..4282f64 100755
--- a/make
+++ b/make
@@ -62,11 +62,15 @@ gen_depfile() {
         printf '%s %s %s %s\n' "$type" "$target" "$source" "$args"
         # accumulate the dependencies in a list to avoid make bugs.
         # there will be no duplicates since the list was previously sorted
-        if [ "$type" = file ]; then
-            deps="$deps $source"
-            # avoid "No rule to make target" when deps disappear
-            echo "$source:" >&3
+        if [ "$type" != file ]; then
+            continue
         fi
+        case "$source" in
+            /dev/*) continue
+        esac
+        deps="$deps $source"
+        # avoid "No rule to make target" when deps disappear
+        echo "$source:" >&3
     done
     echo "initramfs.img: $deps" >&3
 }
-- 
cgit v1.2.3-70-g09d2