Manually building a 'clean' target in the Makefile.
authorAaron Taylor <ataylor@subgeniuskitty.com>
Mon, 26 Apr 2021 11:44:19 +0000 (04:44 -0700)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Mon, 26 Apr 2021 11:44:19 +0000 (04:44 -0700)
After completing the port to the newer kernel, the pattern behind this cleanup
can be better organized.

Makefile

index defbfcf..5c7a6a8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -104,3 +104,9 @@ kdev_install:
        $(INSTALL_f) Module.symvers $(DESTDIR)$(kmodinstalldir)/scif.symvers
        $(INSTALL_d) $(DESTDIR)$(kmodincludedir)
        $(INSTALL_f) include/scif.h $(DESTDIR)$(kmodincludedir)
        $(INSTALL_f) Module.symvers $(DESTDIR)$(kmodinstalldir)/scif.symvers
        $(INSTALL_d) $(DESTDIR)$(kmodincludedir)
        $(INSTALL_f) include/scif.h $(DESTDIR)$(kmodincludedir)
+
+clean:
+       @rm -f ./*/*.o ./*/.*.o
+       @rm -f ./*/*.o.d ./*/.*.o.d
+       @rm -f ./*/*.o.cmd ./*/.*.o.cmd
+       @rm -f ./modules.order