Last active
October 20, 2018 00:43
-
-
Save val314159/1541f79ac7ab196c5c8551c62212360d to your computer and use it in GitHub Desktop.
make utility
This file contains 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
#!/usr/bin/env python | |
import os, sys | |
while 1: | |
if 'Makefile' in os.listdir('.'): | |
os.execlp('make', *sys.argv) | |
elif os.path.realpath('.') == '/': | |
raise SystemExit("Error: '%s' Not Found" % Makefile) | |
os.chdir('..') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment