X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=0b6b37bbea8a314838fbc298ec47805c6cc4aab4;hb=bd6a5fe3b1ad4c41568bd665bdb0ecfa7c7a5f02;hp=7b62aebd41079c8539387681e754ce145a65213b;hpb=572952e6b57d4ab8e8e2caf02aae39da8b48d9dc;p=platal.git diff --git a/Makefile b/Makefile index 7b62aeb..0b6b37b 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ endef all: build -build: core banana wiki jquery +build: core banana wiki medals jquery q: @echo -e "Code statistics\n" @@ -114,7 +114,16 @@ htdocs/css/banana.css: include/banana/banana.inc.php: cd $(@D) && find $(BANANA)/banana/ -name '*.php' -exec ln -snf {} . ";" +## +## Medal thumbnails +## +MEDAL_PICTURES=$(wildcard htdocs/images/medals/*.jpg) +MEDAL_THUMBNAILS=$(subst /medals/,/medals/thumb/,$(MEDAL_PICTURES)) + +medals: $(MEDAL_THUMBNAILS) +$(MEDAL_THUMBNAILS): $(subst /medals/thumb/,/medals/,$(@F)) + convert -resize x50 $(subst /medals/thumb/,/medals/,$@) $@ ## ## jquery