Created
November 15, 2022 14:13
-
-
Save dsoares/fc1de583153ac18c37cade123e9b0b8a to your computer and use it in GitHub Desktop.
Makefile notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
%: | |
@: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment