etc/gentoo/Makefile
2008-03-16 22:02:24 +01:00

26 lines
570 B
Makefile

.PHONY: all install clean
all install clean:
PORTDIR = $(wildcard /usr/portage)
ifeq "$(USER)" "root"
ifneq "$(PORTDIR)" ""
BIN = machine-update tla-mirror-all
SBIN = laptop-mode m4conf-update make-kernel regen-virtuals
MISC = grub.conf.m4 local.conf.m4 02locale
DIRS = /usr/local/bin /boot/grub /etc/fonts /etc/env.d
install:
mkdir -p $(DIRS)
install -m755 -o0 -g0 $(BIN) $(SBIN) /usr/local/bin
install -m664 -o0 -g0 grub.conf.m4 /boot/grub
install -m664 -o0 -g0 local.conf.m4 /etc/fonts
install -m664 -o0 -g0 02locale /etc/env.d
m4conf-update
endif
endif