Files
ioccc/2014/morgan
Landon Curt Noll f29b37e49a improve HTML menus, add social.html, prep for IOCCC28 winners
Prepare for the winners of **IOCCC28**.

> However these are not the 2024 droids you are looking for.  :-)

The HTML menu (both JavaScript and non-JavaScript) has been updated.

The `Status -> Rules and guidelines' have been replaced with two
separate menus `Status -> IOCCC rules` and `Status -> IOCCC guidelines`.

Added a new top level `social.html` page: built from a new `social.md`.

Sorted rules for building specific web pages in the top level `Makefile`.
Added `make social` to make the `social.html` page from `social.md`.

The `bin/gen-top-html.sh` now is able to process a argument of **social**
to process the new top level `social.html` page.

Changed `bin/gen-top-html.sh` VERSION from "2.0.0 2025-03-13"
to "2.0.1 2025-07-25".

Below `About -> Home page` a new `About -> IOCCC social media` menu item
as added.

Because the menu change touched every HTML file, we changed the general
copyright date range for HTML files from "1984-2024" to "1984-2025"
due to the extensive changes made for **IOCCC28**.

Those markdown files that were modified in 2025 had their copyright date
range also changed from "1984-2024" to "1984-2025".

Rebuilt tarballs and sitemap due to the extensive HTML rebuilding.

Ran `make update` to perform the above.
2025-07-26 13:06:29 -07:00
..
2020-12-30 16:57:03 -08:00
2023-07-06 21:49:38 -07:00
2024-06-25 18:28:04 -07:00

To build:

    make

To use:

    ./prog [arg ..]

Try:

    ./try.sh

Judges' remarks:

Think of this as a Maker Faire's make. :-)

It works reasonably well. While not super ultra-featured, it does fair well with the Makefile we supplied. Not only that, it helped uncover a bug we had in our special Makefile rules.

Author's remarks:

Remarks

This program is a tiny make(1) clone.

It is able to parse a subset of the make(1) syntax and will execute rules for goals given in arguments if they need to (based on timestamp of dependencies of rule targets).

Supported features

  • Variable assignments (only recursive ones). Variable references with recursion.
  • Environment variables are available.
  • It is possible to specify variables in command line: name=value.
  • Variables given in command line will have precedence over variables defined in Makefile, which will have precedence over environment variables.
  • If no target given in command line, the first target defined will be used.
  • Comments, escaped comments, escaped new lines.

It should be able to build programs of previous years with the provided Makefile found in previous contest archives. Simply use this program instead of make. It will recursively use itself for sub-make.

Limitations / Known issues

  • There are a lot of memory leaks (not a single free).
  • The opened file is not closed.
  • The input file shall be named Makefile.
  • No diagnostic message, but the exit status is non zero to indicates failure (failed command in a rule or missing target).
  • Only $< and $@ are supported for automatic variables in commands.
  • No parallel execution (-j option).
  • No := += ?= syntax for variable assignment.
  • No built-in function available.
  • No pattern targets.
  • No pattern substitution variables.
  • No built-in rules.
  • No built-in variables (except the one from environment).
  • No conditional directives.

Compilation warnings

With gcc 4.8.2 on Linux Ubuntu 14.04 64-bit :

    prog.c:22:15: warning: return makes integer from pointer without a cast [enabled by default]
    prog.c:23:72: warning: signed and unsigned type in conditional expression [-Wsign-compare]
    prog.c:12:11: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]