diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-08-23 16:35:13 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2007-08-23 16:35:13 +0800 |
commit | 56c7ecbe65610315e0f48089e1c50b8ab147b800 (patch) | |
tree | c5288c3916c93f26fe5b8500040a8718560e0377 /Makefile | |
parent | 81aa8fc95444b14e427befa5b03f52388f64e21c (diff) | |
download | talos-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-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |