Makefile 579 B

1234567891011121314151617181920212223242526272829
  1. dropin = $(shell find dropin -type f)
  2. chache = $(shell find cached -type f -name '*.pkg.tar.xz')
  3. whole.img: bootfs.img rootfs.img
  4. ./whole.sh
  5. rootfs.img: rootfs.px $(dropin) $(cache)
  6. ./rootfs.px
  7. bootfs.img: bootfs.sh initrd.img bootfs/syslinux.cfg
  8. ./bootfs.sh
  9. initrd.img: initrd.sh rootfs.img initrd/init initrd/etc/*
  10. ./initrd.sh
  11. update:
  12. rm -fr repos
  13. ./rootfs.px
  14. clean:
  15. rm -fr rootfs.img rootfs rootfs.tmp
  16. rm -fr initrd.img initrd/{lib,sbin}
  17. rm -fr bootfs.img bootfs/linux
  18. distclean: clean
  19. rm -fr cache repos
  20. rm -fr build/*/{src,pkg}
  21. rm -f build/*/*.pkg.tar.xz