This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prints all targets of the Makefile | |
.PHONY: help | |
help: | |
@make --print-data-base --question | \ | |
grep -v -e '^Makefile' | \ | |
awk '/^[^.%][-A-Za-z0-9_]*:/ \ | |
{ print substr($$1, 1, length($$1)-1) }' | \ | |
sort | \ | |
pr --omit-pagination --width=80 --columns=3 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL=/bin/bash -c 'eval $$0 $$@ 2>&1 | stdbuf -oL sed "s/^/[$@] /"' | |
.SHELLFLAGS= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import tempfile | |
import os | |
import re | |
from string import Template | |
STRING = """ | |
#include <iostream> | |
#include <string> |