areguera / centos / Artwork

Forked from centos/Artwork 5 years ago
Clone
Blob Blame History Raw
################################################################################
#
# 	The CentOS Icons Makefile
# 	Copyright (C) 2019  Alain Reguera Delgado
#
# 	This program is free software: you can redistribute it and/or modify it
# 	under the terms of the GNU General Public License as published by the Free
# 	Software Foundation, either version 3 of the License, or (at your option)
# 	any later version.
#
# 	This program is distributed in the hope that it will be useful, but WITHOUT
# 	ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# 	FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# 	more details.
#
# 	You should have received a copy of the GNU General Public License along
# 	with this program.  If not, see <https://www.gnu.org/licenses/>.
#
################################################################################

#===============================================================================
# Configuration
#===============================================================================
srcdir = SVG
prefix = PNG

#===============================================================================
# Requirements
#===============================================================================
all: icons pixmaps redhat-logos

#===============================================================================
# Icons
#===============================================================================
icons: \
	$(prefix)/icons/hicolor/scalable/apps/start-here.svg \
	$(prefix)/icons/hicolor/scalable/apps/fedora-logo-icon.svg \
	$(prefix)/icons/hicolor/scalable/apps/xfce4_xicon1.svg \
	$(prefix)/icons/hicolor/16x16/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/16x16/apps/system-logo-icon.png \
	$(prefix)/icons/hicolor/22x22/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/22x22/apps/system-logo-icon.png \
	$(prefix)/icons/hicolor/24x24/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/24x24/apps/system-logo-icon.png \
	$(prefix)/icons/hicolor/32x32/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/32x32/apps/system-logo-icon.png \
	$(prefix)/icons/hicolor/36x36/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/36x36/apps/system-logo-icon.png \
	$(prefix)/icons/hicolor/48x48/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/48x48/apps/system-logo-icon.png \
	$(prefix)/icons/hicolor/48x48/apps/anaconda.png \
	$(prefix)/icons/hicolor/96x96/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/96x96/apps/system-logo-icon.png \
	$(prefix)/icons/hicolor/256x256/apps/fedora-logo-icon.png \
	$(prefix)/icons/hicolor/256x256/apps/system-logo-icon.png

$(prefix)/icons/hicolor/scalable/apps:
	mkdir -p $(prefix)/icons/hicolor/scalable/apps
$(prefix)/icons/hicolor/16x16/apps:
	mkdir -p $(prefix)/icons/hicolor/16x16/apps
$(prefix)/icons/hicolor/22x22/apps:
	mkdir -p $(prefix)/icons/hicolor/22x22/apps
$(prefix)/icons/hicolor/24x24/apps:
	mkdir -p $(prefix)/icons/hicolor/24x24/apps
$(prefix)/icons/hicolor/32x32/apps:
	mkdir -p $(prefix)/icons/hicolor/32x32/apps
$(prefix)/icons/hicolor/36x36/apps:
	mkdir -p $(prefix)/icons/hicolor/36x36/apps
$(prefix)/icons/hicolor/48x48/apps:
	mkdir -p $(prefix)/icons/hicolor/48x48/apps
$(prefix)/icons/hicolor/96x96/apps:
	mkdir -p $(prefix)/icons/hicolor/96x96/apps
$(prefix)/icons/hicolor/256x256/apps:
	mkdir -p $(prefix)/icons/hicolor/256x256/apps

$(prefix)/icons/hicolor/scalable/apps/start-here.svg: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/scalable/apps
	cp $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/scalable/apps/start-here.svg
$(prefix)/icons/hicolor/scalable/apps/fedora-logo-icon.svg: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/scalable/apps
	cp $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/scalable/apps/fedora-logo-icon.svg
$(prefix)/icons/hicolor/scalable/apps/xfce4_xicon1.svg: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/scalable/apps
	cp $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/scalable/apps/xfce4_xicon1.svg

$(prefix)/icons/hicolor/16x16/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/16x16/apps
	inkscape --export-height=16 --export-png=$(prefix)/icons/hicolor/16x16/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/16x16/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/16x16/apps
	inkscape --export-height=16 --export-png=$(prefix)/icons/hicolor/16x16/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/22x22/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/22x22/apps
	inkscape --export-height=22 --export-png=$(prefix)/icons/hicolor/22x22/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/22x22/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/22x22/apps
	inkscape --export-height=22 --export-png=$(prefix)/icons/hicolor/22x22/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/24x24/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/24x24/apps
	inkscape --export-height=24 --export-png=$(prefix)/icons/hicolor/24x24/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/24x24/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/24x24/apps
	inkscape --export-height=24 --export-png=$(prefix)/icons/hicolor/24x24/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/32x32/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/32x32/apps
	inkscape --export-height=32 --export-png=$(prefix)/icons/hicolor/32x32/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/32x32/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/32x32/apps
	inkscape --export-height=32 --export-png=$(prefix)/icons/hicolor/32x32/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/36x36/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/36x36/apps
	inkscape --export-height=36 --export-png=$(prefix)/icons/hicolor/36x36/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/36x36/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/36x36/apps
	inkscape --export-height=36 --export-png=$(prefix)/icons/hicolor/36x36/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/48x48/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/48x48/apps
	inkscape --export-height=48 --export-png=$(prefix)/icons/hicolor/48x48/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/48x48/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/48x48/apps
	inkscape --export-height=48 --export-png=$(prefix)/icons/hicolor/48x48/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/48x48/apps/anaconda.png: $(srcdir)/anaconda.svg $(prefix)/icons/hicolor/48x48/apps
	inkscape --export-height=48 --export-png=$(prefix)/icons/hicolor/48x48/apps/anaconda.png $(srcdir)/anaconda.svg
$(prefix)/icons/hicolor/96x96/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/96x96/apps
	inkscape --export-height=96 --export-png=$(prefix)/icons/hicolor/96x96/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/96x96/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/96x96/apps
	inkscape --export-height=96 --export-png=$(prefix)/icons/hicolor/96x96/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/256x256/apps/fedora-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/256x256/apps
	inkscape --export-height=256 --export-png=$(prefix)/icons/hicolor/256x256/apps/fedora-logo-icon.png $(srcdir)/centos-symbol.svg
$(prefix)/icons/hicolor/256x256/apps/system-logo-icon.png: $(srcdir)/centos-symbol.svg $(prefix)/icons/hicolor/256x256/apps
	inkscape --export-height=256 --export-png=$(prefix)/icons/hicolor/256x256/apps/system-logo-icon.png $(srcdir)/centos-symbol.svg

#===============================================================================
# Pixmaps
#===============================================================================
pixmaps: \
	$(prefix)/pixmaps/fedora-gdm-logo.png \
	$(prefix)/pixmaps/fedora-logo.png \
	$(prefix)/pixmaps/fedora-logo-small.png \
	$(prefix)/pixmaps/fedora-logo-sprite.png \
	$(prefix)/pixmaps/fedora-logo-sprite.svg \
	$(prefix)/pixmaps/poweredby.png \
	$(prefix)/pixmaps/system-logo-white.png

$(prefix)/pixmaps:
	mkdir -p $(prefix)/pixmaps

$(prefix)/pixmaps/fedora-logo-sprite.svg: $(srcdir)/centos-logo-release.svg $(prefix)/pixmaps
	cp -v $(srcdir)/centos-logo-release.svg $(prefix)/pixmaps/fedora-logo-sprite.svg
$(prefix)/pixmaps/fedora-gdm-logo.png: $(srcdir)/centos-logo-white.svg $(prefix)/pixmaps
	inkscape --export-height=48 --export-png=$(prefix)/pixmaps/fedora-gdm-logo.png $(srcdir)/centos-logo-white.svg
$(prefix)/pixmaps/fedora-logo.png: $(srcdir)/centos-logo-release.svg $(prefix)/pixmaps
	inkscape --export-height=88 --export-png=$(prefix)/pixmaps/fedora-logo.png $(srcdir)/centos-logo-release.svg
$(prefix)/pixmaps/fedora-logo-small.png: $(srcdir)/centos-logo-release.svg $(prefix)/pixmaps
	inkscape --export-height=48 --export-png=$(prefix)/pixmaps/fedora-logo-small.png $(srcdir)/centos-logo-release.svg
$(prefix)/pixmaps/fedora-logo-sprite.png: $(srcdir)/centos-logo-release.svg $(prefix)/pixmaps
	inkscape --export-height=128 --export-png=$(prefix)/pixmaps/fedora-logo-sprite.png $(srcdir)/centos-logo-release.svg
$(prefix)/pixmaps/poweredby.png: $(srcdir)/centos-logo-release.svg $(prefix)/pixmaps
	inkscape --export-height=31 --export-png=$(prefix)/pixmaps/poweredby.png $(srcdir)/centos-logo-release.svg
$(prefix)/pixmaps/system-logo-white.png: $(srcdir)/centos-logo-release-white.svg $(prefix)/pixmaps
	inkscape --export-height=80 --export-png=$(prefix)/pixmaps/system-logo-white.png $(srcdir)/centos-logo-release-white.svg

#===============================================================================
# redhat-logos
#===============================================================================
redhat-logos: \
	$(prefix)/redhat-logos/fedora_logo.svg \
	$(prefix)/redhat-logos/fedora_logo_darkbackground.svg

$(prefix)/redhat-logos:
	mkdir -p $(prefix)/redhat-logos

$(prefix)/redhat-logos/fedora_logo.svg: $(srcdir)/centos-logo-release.svg $(prefix)/redhat-logos
	cp -v $(srcdir)/centos-logo-release.svg $(prefix)/redhat-logos/fedora_logo.svg
$(prefix)/redhat-logos/fedora_logo_darkbackground.svg: $(srcdir)/centos-logo-release-white.svg $(prefix)/redhat-logos
	cp -v $(srcdir)/centos-logo-release-white.svg $(prefix)/redhat-logos/fedora_logo_darkbackground.svg