-path $(top_srcdir)/ldiskfs/linux-stage \
-prune -false -o -type f -name '*.[hc]'
+help:
+ @echo 'Cleaning targets:'
+ @echo ' clean - Remove generated object files but keep the files'
+ @echo ' generated by autotools; use `git clean -xdf` to'
+ @echo ' purge all files not tracked by git'
+ @echo ''
+ @echo 'Generic targets:'
+ @echo ' all - Build all modules and utilities enabled by'
+ @echo ' autotools'
+ @echo ' checkpatch - Run checkpatch.pl on latest commit'
+ @echo ' checkstack - Run checkstack.pl'
+ @echo ' checkstack-update - Update checkstack.pl'
+ @echo ' checkstack-clean - Remove checkstack.pl artifacts'
+ @echo ''
+ @echo 'Packaging targets:'
+ @echo ' rpms - Create RPM packages'
+ @echo ' srpm - Create source RPM packages'
+ @echo ' dkms-rpm - Create DKMS RPM packages'
+ @echo ' dkms-srpm - Create source DKMS RPM packages'
+ @echo ' debs - Create Debian packages'
+ @echo ' dkms-debs - Create DKMS Debian packages'
+
+checkpatch:
+ @git diff HEAD~1 | ./contrib/scripts/checkpatch.pl
+
# these empty rules are needed so that automake doesn't add its own
# recursive rules
etags-recursive: