summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 303b645b2da463cb384df55a01bbd55e38944597 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ifeq ($(USER),root)
PACKAGES=$(shell cat packages.root)
else
PACKAGES=$(shell cat packages.$$(hostname))
endif

build: submodules
	@for package in $(PACKAGES); do ./build $${package}; done

install: submodules
	@for package in $(PACKAGES); do ./install $${package}; done

uninstall:
	@for package in $(PACKAGES); do ./uninstall $${package}; done

clean:
	@for package in $(PACKAGES); do ./clean $${package}; done

submodules:
	@git submodule update --init --recursive

update:
	@git submodule foreach 'git checkout master && git pull'

.PHONY: build install uninstall clean submodules update