Skip to content

Instantly share code, notes, and snippets.

@dsoares
Created November 15, 2022 14:13
Show Gist options
  • Select an option

  • Save dsoares/fc1de583153ac18c37cade123e9b0b8a to your computer and use it in GitHub Desktop.

Select an option

Save dsoares/fc1de583153ac18c37cade123e9b0b8a to your computer and use it in GitHub Desktop.

Revisions

  1. dsoares created this gist Nov 15, 2022.
    23 changes: 23 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # dsoares

    .PHONY: help map.html clear
    default: map.html

    ## help : Print commands help.
    help: Makefile
    @sed -n 's/^##//p' $<

    ## map.html : Generate map.html
    map.html:
    python ../map_with_photos.py `find . -iname '*.jpg'` `find . -iname '*.gpx'`

    ## clean : Remove map.html
    clean:
    rm map.html

    test:
    @echo "Params: " $(filter-out $@,$(MAKECMDGOALS))

    # https://stackoverflow.com/a/6273809/1826109
    %:
    @: