add a Makefile

This adds a top-level Makefile and fixes up SourceMe.py to
be built by it.
This commit is contained in:
Tom Tromey
2013-06-06 20:11:09 -06:00
parent 0509c2273d
commit b17c070954
4 changed files with 12 additions and 3 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*~
*.pyc
*.o
*.so

5
Makefile Normal file
View File

@@ -0,0 +1,5 @@
all: SourceMe.py
cd gui && $(MAKE)
SourceMe.py: SourceMe.py.in
sed -e "s,HERE,$(pwd)," < SourceMe.py.in > SourceMe.py

View File

@@ -1,3 +0,0 @@
import sys
sys.path.append('/home/tromey/gnu/archer/gui')
import gui.commands

3
SourceMe.py.in Normal file
View File

@@ -0,0 +1,3 @@
import sys
sys.path.append('HERE')
import gui.commands