##########################################################################
##########################################################################
#                                                                        #
#        Main makefile for the Linux driver Asus Extras                  #
#                                                                        #
##########################################################################
##########################################################################

ROOTMSG="You must be root to install the module !"

all: build

build:
	make -C driver
	make -C asus_acpid

install:
	@if [ `id -ur` != 0 ]; then \
		echo $(ROOTMSG); \
	else \
		make -C driver install ; \
		make -C asus_acpid install ; \
		echo ""; \
		echo ""; \
		echo "Don't forget to create your ~/.asus_acpi, see README for details" ; \
		echo ""; \
		echo ""; \
	fi

clean:
	make -C driver clean
	make -C asus_acpid clean

