[PATCH 1/2] Fix up Makefiles
From: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
---
Makefile | 11 ++++++++++-
regression/Makefile | 1 +
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index a9fb9b7..7e40266 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,17 @@
PREFIX=/usr/local
+SCRIPTS = guilt guilt-applied guilt-delete guilt-header guilt-init guilt-new guilt-next guilt-pop guilt-prev guilt-push guilt-refresh guilt-series guilt-top guilt-unapplied
+
+.PHONY: all
all:
echo "Nothing to build, it is all bash :)"
echo "Try make install"
+.PHONY: install
install:
- install guilt* $(PREFIX)/bin/
+ install -m 755 $(SCRIPTS) $(PREFIX)/bin/
+
+.PHONY: test
+test:
+ make -C regression all
+
diff --git a/regression/Makefile b/regression/Makefile
index c73d5d0..c538029 100644
--- a/regression/Makefile
+++ b/regression/Makefile
@@ -1,2 +1,3 @@
+.PHONY: all
all:
(for x in *.sh ; do sh $$x || exit $?; done)
--
1.5.0.rc0.g244a7