aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
AgeCommit message (Collapse)Author
2021-08-24Rename `incdec.pl.m4` to `incdec.m4.pl`Teddy Wing
Like we did for the `incdec.m4` Bash include, rename the Perl M4 file to give it a `.pl` extension so we get Perl syntax highlighting. Similarly define an include macro so quoting doesn't mess up highlighting.
2021-08-24Makefile: Swap m4 argumentsTeddy Wing
Put the file after the option argument since it's more common to order them that way.
2021-08-23Makefile: Reorganise targetsTeddy Wing
Put build targets above the test target.
2021-08-23Highlight `incdec.m4` as a Bash fileTeddy Wing
When I changed the file to an M4 file, it removed Bash syntax highlighting, and the `include()` call interfered with Bash quote matching. Use a different macro to include the Perl file so we can get Bash syntax highlighting.
2021-08-23Generate `incdec` from `incdec.m4`Teddy Wing
Include the built `incdec.pl` code in the Bash file by generating it from `incdec.pm`.
2021-08-23Build final Perl program from `incdec.pm`Teddy Wing
Build an intermediary Perl file that includes the extra lines that call `incdec()`. This whole file should be included in the final Bash function `perl -e` call.
2021-08-08Add a Perl module for performing the actionTeddy Wing
This allows us to more easily test the functionality and add new behaviours.