Page MenuHomeDevCentral

D2556.diff
No OneTemporary

D2556.diff

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,32 @@
-all: generate-webcontent-index
+# -------------------------------------------------------------
+# Salt - Operations repository
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Description: Allow to generate repository content
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
-generate-webcontent-index:
+RM=rm -f
+MV=mv
+
+# -------------------------------------------------------------
+# Main targets
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+all: repo
+
+clean: clean-repo
+
+# -------------------------------------------------------------
+# Build targets - repository
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+repo: roles/webserver-content/init.sls
+
+roles/webserver-content/init.sls:
tmpfile=`mktemp /tmp/make-rOPS-generate-webcontent-index.XXXXXX` ; \
utils/generate-webcontent-index.py > "$$tmpfile" ;\
- mv "$$tmpfile" roles/webserver-content/init.sls
+ ${MV} "$$tmpfile" roles/webserver-content/init.sls
+
+clean-repo:
+ ${RM} roles/webserver-content/init.sls

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 22:36 (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2261230
Default Alt Text
D2556.diff (1 KB)

Event Timeline