Page MenuHomeDevCentral

D2556.id6457.diff
No OneTemporary

D2556.id6457.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-rep
+
+# -------------------------------------------------------------
+# 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
Mon, Nov 25, 00:45 (21 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2261393
Default Alt Text
D2556.id6457.diff (1 KB)

Event Timeline