From bc05a46912d83901c472c720c5112e315127789f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 14 Jul 2013 19:43:48 -0600 Subject: add Makefiles to generate the branding --- Makefile | 2 +- common.mk | 6 ++++++ sitestatic/Makefile | 7 +++++-- sitestatic/archnavbar/Makefile | 8 ++++++++ sitestatic/logos/Makefile | 15 +++++++++++++++ 5 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 sitestatic/archnavbar/Makefile create mode 100644 sitestatic/logos/Makefile diff --git a/Makefile b/Makefile index 9c3fafea..6cc53cf5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -subdirs = sitestatic visualize/static +subdirs = sitestatic sitestatic/archnavbar sitestatic/logos visualize/static define newline = diff --git a/common.mk b/common.mk index a0db5d70..7cdfc836 100644 --- a/common.mk +++ b/common.mk @@ -1,5 +1,7 @@ topdir := $(dir $(lastword $(MAKEFILE_LIST))) www = $(topdir)/../web-cache/www +artwork = $(topdir)/../web-cache/artwork +branding = $(artwork)/official-2013/optimized-text #JSMIN = cp $1 $2 #JSMIN = compiler $1 @@ -19,4 +21,8 @@ $(www)/https/%: wget 'http://$*' -O '$@' touch '$@' +$(branding)/%: + libregit 'git://projects.parabolagnulinux.org/artwork.git' master '$(artwork)' + make -C '$(branding)' + .PHONY: PHONY diff --git a/sitestatic/Makefile b/sitestatic/Makefile index e99e3c96..432b15ce 100644 --- a/sitestatic/Makefile +++ b/sitestatic/Makefile @@ -7,9 +7,9 @@ targets = \ bootstrap-typeahead \ jquery-$(jquery-ver) \ jquery.tablesorter-$(tablesorter-ver) \ - konami + konami \ -target-files=$(addsuffix .js,$(targets)) $(addsuffix .min.js,$(targets)) +target-files=$(addsuffix .js,$(targets)) $(addsuffix .min.js,$(targets)) favicon.ico silhouette.png all: $(target-files) clean: rm -f -- $(target-files) @@ -22,3 +22,6 @@ jquery.tablesorter-$(tablesorter-ver).js: $(www)/https/raw.github.com/Mottie/tab cp $< $@ konami.js: %: $(www)/https/raw.github.com/snaptortoise/konami-js/master/% cp $< $@ + +favicon.ico silhouette.png: %: $(branding)/% + cp $< $@ diff --git a/sitestatic/archnavbar/Makefile b/sitestatic/archnavbar/Makefile new file mode 100644 index 00000000..a4b5e777 --- /dev/null +++ b/sitestatic/archnavbar/Makefile @@ -0,0 +1,8 @@ +include ../../common.mk + +all: archlogo.png +clean: + rm -f archlogo.png + +archlogo.png: %: $(branding)/% + cp $< $@ diff --git a/sitestatic/logos/Makefile b/sitestatic/logos/Makefile new file mode 100644 index 00000000..1fa00733 --- /dev/null +++ b/sitestatic/logos/Makefile @@ -0,0 +1,15 @@ +include ../../common.mk + +files = \ + apple-touch-icon-114x114.png \ + apple-touch-icon-144x144.png \ + apple-touch-icon-57x57.png \ + apple-touch-icon-72x72.png \ + icon-transparent-64x64.png + +all: $(files) +clean: + rm -f -- $(files) + +$(files): %: $(branding)/% + cp $< $@ -- cgit v1.2.3