+parser-test: devices/parser-test.o devices/params.o devices/parser.o \
+ devices/yaboot-cfg.o \
+ $(foreach p,$(PARSERS),devices/$(p)-parser.o)
+ $(CC) $(LDFLAGS) -o $@ $^
+
+devices/%: CFLAGS+=-I.
+
+install: all
+ $(INSTALL) -D petitboot $(DESTDIR)$(PREFIX)/sbin/petitboot
+ $(INSTALL) -D udev-helper $(DESTDIR)$(PREFIX)/sbin/udev-helper
+ $(INSTALL) -Dd $(DESTDIR)$(PREFIX)/share/petitboot/artwork/
+ $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/petitboot/artwork/ \
+ $(foreach a,$(ARTWORK),artwork/$(a))
+
+dist: $(PACKAGE)-$(VERSION).tar.gz
+
+$(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)-$(VERSION)
+ tar czvf $@ $^
+
+$(PACKAGE)-$(VERSION): clean
+ mkdir $@ $@/devices
+ cp -a artwork $@
+ cp *.[ch] $@
+ cp -a devices/*.[ch] $@/devices/
+ cp Makefile $@
+