diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-11 21:40:28 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-11 21:40:28 -0400 |
commit | 50392995d6e7f3a10fb74bb2f9073a4790f8933c (patch) | |
tree | c89b067b3bacf35e092af5c31fb6e6a08921f31c /initrd/Makefile | |
download | jove-env-50392995d6e7f3a10fb74bb2f9073a4790f8933c.tar.gz jove-env-50392995d6e7f3a10fb74bb2f9073a4790f8933c.tar.bz2 jove-env-50392995d6e7f3a10fb74bb2f9073a4790f8933c.zip |
Diffstat (limited to 'initrd/Makefile')
-rw-r--r-- | initrd/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/initrd/Makefile b/initrd/Makefile new file mode 100644 index 0000000..66f3753 --- /dev/null +++ b/initrd/Makefile @@ -0,0 +1,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) |