Giter Site home page Giter Site logo

makefile

.RECIPEPREFIX := |
.DEFAULT_GOAL := tangle

# Adapted From: https://www.systutorials.com/how-to-get-the-full-path-and-directory-of-a-makefile-itself/
mkfilePath := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfileDir := $(dir $(mkfilePath))
emkDir := $(mkfileDir)/.emacs.d/
emkFile := $(emkDir)/makefile
emkMake := make -f $(emkFile)

README:
|git tangle $(mkfileDir)/README.org

tangle: README
|git tangle $(mkfileDir)/oreo.aiern.org

tangle-emacs:
|$(emkMake) tangle

tangle-all: tangle tangle-emacs

emacs:
|$(emkMake) emacs
emacs-nw:
|$(emkMake) emacs-nw

previous projects

bakery

My pride and joy; based off of Andrew Moffat’s sh, this python module allows you to import shell commands as modules as well. For example:

<<20210601181755824433500>>
<<20210601181800630609300>>
<<20210601181804730771100>>

You might be thinking to yourself, “Cool!” And also, “…Wait what?”

breaking it down


from baker.y import git

This will import the git utility from your path as a bakery object; note, however, that while the statement is importing git from baker.y, there are actually two submodules in play here: baker with a y, and baker with an i.

To facilitate the use of git(C = [path]).status(), the latter submodule must be used. This also prevents the use of something like git(), but, since that just shows the help text, one can simply use git.help() instead.


git.clone(
    b = "master",
    recurse_submodule = True,
    "https://github.com/<<username>>/<<username>>",
    "~/<<username>>",
    _run = True,
)

print(git(C = "~/<<username>>").status())

want more information?

Get it here! https://gitlab.com/picotech/bakery

Also: eh heh heh… yeah… I like gitlab's grouping system… /sheepish grin/

Jeet Ray's Projects

config icon config

Configuration and help files for Portacle

f.el icon f.el

Modern API for working with files and directories in Emacs

flk icon flk

A LISP that runs wherever Bash is

git-subtree icon git-subtree

Git Subtree with latest extensions (e.g. .gittree config file)

maid icon maid

Markdown driven task runner.

mdsh icon mdsh

Multi-lingual, Markdown-based Literate Programming... in run-anywhere bash

saku icon saku

:m: Markdown-based task runner

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.