+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 $@ $^
+
+$(PACKAGE)-$(VERSION): clean
+ mkdir $@ $@/devices
+ cp -a artwork $@
+ cp -a utils $@
+ cp *.[ch] $@
+ cp -a devices/*.{c,h,sh} $@/devices/
+ cp -a devices/parser-tests $@/devices/
+ cp Makefile $@
+ cp TODO COPYING $@
+