summaryrefslogtreecommitdiffstats
path: root/build_tools/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/makefile')
-rw-r--r--build_tools/makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/build_tools/makefile b/build_tools/makefile
new file mode 100644
index 0000000..c07f7ac
--- /dev/null
+++ b/build_tools/makefile
@@ -0,0 +1,44 @@
+# makefile for LinHES (aka KnoppMyth) R6 development.
+#
+#########################################################################
+# Configuration: #
+#-----------------------------------------------------------------------#
+# Directory within which are the profiles:
+PRODIR = larch/profiles
+# The list of profiles to support:
+PROFILES = dev local
+# directory within which to build:
+SUBDIR = clarch
+#-----------------------------------------------------------------------#
+# Default iso image name:
+DEFAULT = LinHES.iso
+# The directory of the resulting iso image:
+RESDIR = /tmp
+# full pathname to the iso built release file:
+RELFILE = /home/larchroot/etc/LinHES-release
+# Name of the created CDROM image:
+CDFILE = /home/larchroot/.larch/mylivecd.iso
+#########################################################################
+# Targets: #
+#-----------------------------------------------------------------------#
+# The default target:
+Help help:
+ @echo ""
+ @echo "Usage: 'make <profile>' where <profile> is one of:"
+ @echo " $(PROFILES)"
+ @echo " to make a $(RESULT) file of that profile."
+ @echo ""
+#-----------------------------------------------------------------------#
+CMD = mklarch -f -p $(PRODIR)
+$(PROFILES) :
+ @clear ; cd $(SUBDIR) && \
+ echo -e "\nBeginning \e[1m$(CMD)/R6-$@\e[0m" && \
+ time ./$(CMD)/R6-$@ -c /tmp/R6-$@ 2>&1 && \
+ ISOIMG="$(DEFAULT)" && [ -f "$(RELFILE)" ] && \
+ ISOIMG="$$(cat $(RELFILE) | sed 's/ /_/g').iso" && \
+ IMAGE="$(RESDIR)/$${ISOIMG}" && mv -f $(CDFILE) $${IMAGE} && \
+ echo -e "\nThe iso is now located at \e[1m$${IMAGE}\e[0m\n" && \
+ [ "$(DEFAULT)" != "$${ISOIMG}" ] && { cd $(RESDIR) && \
+ rm -f $(DEFAULT) ; ln -s $${ISOIMG} $(DEFAULT) ; }
+#######################################################################
+# End