# 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 ' where 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