tailix/Makefile

27 lines
623 B
Makefile
Raw Normal View History

2022-12-06 02:41:18 +00:00
ABS_REPO != pwd
2022-12-06 16:08:59 +00:00
SYSROOT = $(ABS_REPO)/sysroot
2022-12-06 02:41:18 +00:00
2022-12-06 16:08:59 +00:00
SYSROOT_TARGETS = \
$(SYSROOT)/bin/busybox \
$(SYSROOT)/etc/hosts \
$(SYSROOT)/etc/shells \
$(SYSROOT)/usr/include/kernaux.h \
$(SYSROOT)/usr/lib/libc.a \
$(SYSROOT)/usr/lib/libkernaux.la
2022-12-06 03:55:09 +00:00
2022-12-06 16:08:59 +00:00
all: fhs $(SYSROOT_TARGETS)
2022-12-06 05:37:47 +00:00
2022-12-06 15:43:07 +00:00
clean:
2022-12-06 16:08:59 +00:00
rm -rf build $(SYSROOT) musl-gcc.specs
2022-12-06 15:43:07 +00:00
2022-12-06 07:37:02 +00:00
include make/busybox.mk
include make/fhs.mk
include make/libkernaux.mk
2022-12-06 08:15:33 +00:00
include make/musl.mk
2022-12-06 03:33:53 +00:00
2022-12-06 16:08:59 +00:00
$(SYSROOT)/etc/hosts: etc/hosts fhs
install -m 644 etc/hosts $(SYSROOT)/etc/hosts
2022-12-06 05:58:52 +00:00
2022-12-06 16:08:59 +00:00
$(SYSROOT)/etc/shells: etc/shells fhs
install -m 644 etc/shells $(SYSROOT)/etc/shells