2010-09-24 17:24:43 -06:00
|
|
|
PACKAGES =
|
|
|
|
|
|
|
|
all: packages
|
|
|
|
|
|
|
|
define COPYTREE
|
|
|
|
mkdir -p $(2)
|
|
|
|
(cd $(1) && find . -not -name "*~" | cpio -o) | (cd $(2) && cpio -i)
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
include */*.mk
|
|
|
|
|
2010-09-26 21:54:31 -06:00
|
|
|
packages: $(addsuffix .pkg, $(PACKAGES))
|
|
|
|
|
|
|
|
install: $(addsuffix -install, $(PACKAGES))
|
2010-09-24 17:24:43 -06:00
|
|
|
|
|
|
|
clean: $(addsuffix -clean, $(PACKAGES))
|
2010-09-26 21:54:31 -06:00
|
|
|
rm -rf build *.pkg *-install *-build
|
|
|
|
|
|
|
|
%.pkg: %-install
|
|
|
|
mksquashfs build/$* $*.pkg -all-root -noappend
|