A "simple" Snake, done as my final JS class project back in DUT https://snek.s.codinget.me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Snek/Makefile

43 lines
861 B

.PHONY: all clean
ICON = public/assets/icon32.png public/assets/icon256.png public/favicon.ico
APPLE = public/assets/apple32.png
WALL = public/assets/wall32.png
SNAKE = public/assets/snake.json
CSS = public/css/snek.css
OUTPUT = $(ICON) $(APPLE) $(WALL) $(SNAKE) $(CSS)
all: icon css apple wall snake
icon: $(ICON)
apple: $(APPLE)
wall: $(WALL)
snake: $(SNAKE)
css: $(CSS)
public/assets/icon32.png: assets/icon.jpg
convert $^ -resize 32x $@
public/assets/icon256.png: assets/icon.jpg
convert $^ -resize 256x $@
public/favicon.ico: assets/icon.jpg
convert $^ -resize 32x $@
public/assets/apple32.png: assets/apple.png
convert $^ -resize 32x $@
public/assets/wall32.png: assets/wall.png
convert $^ -resize 32x $@
public/assets/snake.json: assets/snake.json
cp $^ $@
public/css/snek.css: src/less/snek.less
lessc $^ $@
clean:
rm -f $(OUTPUT)