blob: 66f3753c37a330aa5cb533b7d896c700e03cade1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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)
|