mlvwmrc/Makefile

54 lines
2.2 KiB
Makefile
Raw Normal View History

TEMP=tmp
CONF=.mlvwm
PIXMAP=$(CONF)/pixmap
PATTERNS=$(CONF)/patterns
all: pixmap patterns
pixmap:
# make the temp directory
mkdir -p $(TEMP)
# download & extract mini-icons
curl -# -L http://www2u.biglobe.ne.jp/~y-miyata/mlvwm/mini-icons.tar.gz -o $(TEMP)/mini-icons.tar.gz
tar -C $(PIXMAP) -xzf $(TEMP)/mini-icons.tar.gz
# download XPM icons from source code repositories
curl -# -L https://raw.githubusercontent.com/videolan/vlc/master/share/icons/16x16/vlc.xpm -o $(PIXMAP)/vlc.xpm
# donwload & convert icons from source code repositories
2023-07-26 13:54:31 +00:00
curl -# -L https://raw.githubusercontent.com/zealdocs/zeal/main/assets/freedesktop/16-apps-zeal.png -o $(TEMP)/zeal.png
convert $(TEMP)/zeal.png $(PIXMAP)/zeal.xpm
curl -# -L https://raw.githubusercontent.com/mpv-player/mpv.io/master/source/images/favicon.png -o $(TEMP)/mpv.png
convert $(TEMP)/mpv.png -resize 16x16\> $(PIXMAP)/mpv.xpm
# download & convert website favicons
convert https://www.chromium.org/favicon.ico $(PIXMAP)/chromium.xpm
curl -# -L https://claws-mail.org/favicon.ico -o $(TEMP)/claws-mail-favicon.ico
convert $(TEMP)/claws-mail-favicon.ico $(PIXMAP)/claws-mail.xpm
curl -# -L https://iridiumbrowser.de/favicon.ico -o $(TEMP)/iridium-favicon.ico
convert $(TEMP)/iridium-favicon.ico[2] $(PIXMAP)/iridium.xpm
patterns:
test ! -d $(PATTERNS) && mkdir $(PATTERNS)
curl -# -L https://forums.macrumors.com/attachments/mac-os-background-jpg.61609 -o $(PATTERNS)/mac-os-background.jpg
curl -# -L https://wallpaperbat.com/img/250263-classic-mac-os-wallpaper.png -o $(PATTERNS)/mac-os-background-hi-res.png
curl -# -L https://forums.macrumors.com/attachments/mac-os-default-png.61610 -o $(PATTERNS)/mac-os-default.png
curl -# -L https://imgur.com/a/9jYy0/zip -o "$(TEMP)/Mac OS Solid Color Backgrounds.zip"
unzip -d $(PATTERNS) "$(TEMP)/Mac OS Solid Color Backgrounds.zip"
install:
2019-01-06 02:58:27 +00:00
cp -R $(CONF) $(HOME)/
ln -fs $(HOME)/$(CONF)/.mlvwmrc $(HOME)/.mlvwmrc
sed -i 's@/home2/tak/bin/pixmap@$(HOME)/$(PIXMAP)@g' $(HOME)/$(CONF)/.mlvwmrc
clean: clean-pixmap
rm -r $(TEMP)
rm -rf $(PATTERNS)
clean-pixmap:
rm $(PIXMAP)/mini*.xpm
rm $(PIXMAP)/chromium.xpm
rm $(PIXMAP)/claws-mail.xpm
rm $(PIXMAP)/iridium.xpm
rm $(PIXMAP)/mpv.xpm
rm $(PIXMAP)/vlc.xpm
2023-07-26 13:54:31 +00:00
rm $(PIXMAP)/zeal.xpm