From: Michael Orlitzky Date: Thu, 7 Dec 2017 21:54:15 +0000 (-0500) Subject: Replace the "all" script with a makefile that constructs it. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=bash.d.git;a=commitdiff_plain;h=eb2ac100241d04561409656a9b63df3a6e3a1437 Replace the "all" script with a makefile that constructs it. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0702cb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +all diff --git a/all b/all deleted file mode 100644 index 573055e..0000000 --- a/all +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -me="${BASH_SOURCE[0]}" -mydir="${me%/*}" - -for script in "${mydir}"/*; do - [ "${script}" == "$me" ] && continue - - source "${script}" -done diff --git a/makefile b/makefile new file mode 100644 index 0000000..2456a3d --- /dev/null +++ b/makefile @@ -0,0 +1,7 @@ +SRCS = aliases compilation options sage + +all: $(SRCS) + cat $(SRCS) > $@ + +clean: + rm -f all