elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elks
/
scripts
/
mkMake
File editor
#!/bin/bash function create() { date '+# Basic Makefile, created on %A, %d %B %Y at %T %Z.' cat <<.EOF # # Please note: # # 1. The standard Makefile rules and defines have been moved to the # file below. # # 2. Standard dependencies are added by the \`make dep\` instruction. # Only non-standard dependencies (ie, not *.c files) should be here. # ELKSDIR = $1/.. include \$(ELKSDIR)/Makefile-rules ######################################################################### # Define rules that are required to be present. Note that if these rules # have nothing to do, they need to have an action of \`@echo -n\` defined. depclean: @echo -n distdir: @echo -n ######################################################################### ### Dependencies: .EOF ls -l | sed 's/^/# /' } function process() { local BASE="$1" DIR NEXT declare -i N=99 if [ "$1" != "." ]; then NEXT="$1/.." else NEXT=.. fi shift for DIR do if [ -d "$DIR" ]; then echo ... Processing "`pwd`" cd "$DIR" process "$NEXT" * if [ -f Makefile ]; then N=99 if [ -f Makefile.$N ]; then rm -f Makefile.$N fi while [ $N -gt 1 ]; do N=$N-1 if [ -f Makefile.$N ]; then mv -f Makefile.{$N,$[$N+1]} fi done mv Makefile{,.1} fi create "$BASE" > Makefile cd .. fi done } process . .
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history