summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-07-14 19:43:48 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-07-14 19:43:48 -0600
commitbc05a46912d83901c472c720c5112e315127789f (patch)
treed562b98551dfd7f5861b195a73c65b0f7a818706
parentd10acd3ebf889fc50054b4da9c1962bad79533e1 (diff)
add Makefiles to generate the branding
-rw-r--r--Makefile2
-rw-r--r--common.mk6
-rw-r--r--sitestatic/Makefile7
-rw-r--r--sitestatic/archnavbar/Makefile8
-rw-r--r--sitestatic/logos/Makefile15
5 files changed, 35 insertions, 3 deletions
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 $< $@