blob: 66f3753c37a330aa5cb533b7d896c700e03cade1 (
plain) (
tree)
|
|
ARCHIVEDIR := archive
PROGRAMSDIR := programs
FILESDIR := files
PROGRAMDIRS := $(wildcard $(PROGRAMSDIR)/*)
PROGRAMBINS := $(patsubst $(PROGRAMSDIR)/%,$(ARCHIVEDIR)/%,$(PROGRAMDIRS))
OUT = initrd.tar
all: ${PROGRAMBINS}
tar -cf $(OUT) -C $(ARCHIVEDIR) .
.PHONY: $(ARCHIVEDIR)/%
$(ARCHIVEDIR)/% : $(PROGRAMSDIR)/%
$(MAKE) -C $< OUT=../../$@ ABIDIR=$(ABIDIR)
|