Просмотр исходного кода

Add rule for trac-to-pelican-home.md

Rob Austein 3 лет назад
Родитель
Сommit
1be425fbb0
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      GNUmakefile

+ 5 - 1
GNUmakefile

@@ -7,10 +7,14 @@ SOURCE_URL		:= https://git.cryptech.is/
 SOURCE_TRAC_DB		:= bikeshed.cryptech.is:/home/trac/db/trac.db
 SOURCE_TRAC_ATTACHMENTS := bikeshed.cryptech.is:/home/trac/files/attachments
 
-all:
+all: pelican/content/trac-to-pelican-home.md
 	tools/extract.py --source-url ${SOURCE_URL}
 	cd pelican; pelican --output website --settings pelicanconf.py --fatal errors content
 
+pelican/content/trac-to-pelican-home.md: tools/trac-to-pelican-home.md
+	mkdir -p $(dir $@)
+	(date '+Date: %Y-%m-%d %H:%M'; cat $<) > $@
+
 fetch:
 	rsync -aP --delete ${SOURCE_TRAC_DB} ${SOURCE_TRAC_ATTACHMENTS} .