summaryrefslogtreecommitdiffstats
path: root/scripts/setup.mk
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-04-26 12:03:51 +0200
committerLars Knoll <lars.knoll@qt.io>2017-05-04 10:25:02 +0000
commit1f8f34167be8bede05f5442d9969caf055f3c031 (patch)
tree1d0c8465fd8b02785ca3e61e6f045418e9ec8f53 /scripts/setup.mk
parent7fad692328ffa099e31d6d9a8d27d7aff796f655 (diff)
Add site generation scripts
Things left for future work: * Sort out a suitable host on which to publish this (QTQAINFRA-1211) * Set up a routine site-publishing cron job (QTQAINFRA-1211) * Make links of entries in some headers (QTQAINFRA-1212) Task-number: QTQAINFRA-1173 Started-by: Louai Al-Khanji <louai.al-khanji@qt.io> Change-Id: I7ee0c37e38cf30de52684ac80cb7848ec8712a0e Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'scripts/setup.mk')
-rw-r--r--scripts/setup.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/setup.mk b/scripts/setup.mk
new file mode 100644
index 0000000..74d088e
--- /dev/null
+++ b/scripts/setup.mk
@@ -0,0 +1,21 @@
+# Make-file for quips.pro to delegate to as:
+# make SRC=$$PWD setup
+default: setup
+WEB = $(SRC)/planetqt/website
+
+html:
+ mkdir -p html
+
+WEBDIRS = images
+$(WEBDIRS:%=html/%): html/%: html
+ [ -d $@ ] || ln -sf $(WEB)/images $(@D)
+
+WEBFILES = favicon.ico \
+ online.css style.css \
+ main.js extras.js modernizr.custom.84855.js \
+ cookie_small.png cookiebar-x.png list_arrow.png theqtcompany.png
+$(WEBFILES:%=html/%): html/%: html
+ [ -f $@ ] || ln -sf $(WEB)/$(@F) $(@D)
+
+setup: $(WEBFILES:%=html/%) $(WEBDIRS:%=html/%)
+ touch html/.ready