summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-08-23 16:35:13 +0800
committerJeremy Kerr <jk@ozlabs.org>2007-08-23 16:35:13 +0800
commit56c7ecbe65610315e0f48089e1c50b8ab147b800 (patch)
treec5288c3916c93f26fe5b8500040a8718560e0377 /Makefile
parent81aa8fc95444b14e427befa5b03f52388f64e21c (diff)
downloadtalos-petitboot-56c7ecbe65610315e0f48089e1c50b8ab147b800.tar.gz
talos-petitboot-56c7ecbe65610315e0f48089e1c50b8ab147b800.zip
Add 'make check' and 'make distcheck' targets
Provides an easy way to test the working dir and tarball. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cecf20c..6fb27cf 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,13 @@ install: all
dist: $(PACKAGE)-$(VERSION).tar.gz
+check: parser-test
+ devices/parser-test.sh
+
+distcheck: dist
+ tar -xvf $(PACKAGE)-$(VERSION).tar.gz
+ cd $(PACKAGE)-$(VERSION) && make check
+
$(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)-$(VERSION)
tar czvf $@ $^
@@ -49,11 +56,13 @@ $(PACKAGE)-$(VERSION): clean
cp -a artwork $@
cp -a utils $@
cp *.[ch] $@
- cp -a devices/*.[ch] $@/devices/
+ cp -a devices/*.{c,h,sh} $@/devices/
+ cp -a devices/parser-tests $@/devices/
cp Makefile $@
cp TODO COPYING $@
clean:
+ rm -rf $(PACKAGE)-$(VERSION)
rm -f petitboot
rm -f udev-helper
rm -f *.o devices/*.o
OpenPOWER on IntegriCloud