Skip to content

Commit

Permalink
Improve Makefile for systemd target auto-completion
Browse files Browse the repository at this point in the history
Explicitly declare individual systemd-related targets in the Makefile
to enable shell auto-completion functionality when using the `make`
command. This change replaces the previous pattern rule that used a wildcard
(%_systemd), which did not support auto-completion.

Now, running `make` followed by pressing the `<TAB>` key will suggest
all systemd-related targets like install_systemd, enable_systemd,
disable_systemd, and uninstall_systemd.

This enhances the developer experience by providing quick access to the
Makefile targets without having to manually type the full names or refer
back to the documentation.
  • Loading branch information
hmgle committed Apr 12, 2024
1 parent 1969438 commit a839065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ uninstall_graftcp:

.PHONY: install_systemd enable_systemd disable_systemd uninstall_systemd

%_systemd:
install_systemd enable_systemd disable_systemd uninstall_systemd:
$(MAKE) -C local $@

install_graftcp_local:
Expand Down

0 comments on commit a839065

Please sign in to comment.