-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-root
35 lines (28 loc) · 814 Bytes
/
make-root
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
26
27
28
29
30
31
32
33
34
35
default: usr/local/Makefile tmp/downloads opt/Makefile dotdirs.txt packages
tmp/downloads:
mkdir -p tmp/downloads
packages: $(HOME)/packages
rm -rf packages
for package in $(HOME)/packages/*.deb; \
do \
echo $$package | tee -a packages; \
dpkg-deb -X $$package ./ >> packages; \
done;
(cd usr/lib/pkgconfig && ~/bin/fix-pkgconfig-prefix.sh)
(cd usr/lib/i386-linux-gnu/pkgconfig && ~/bin/fix-pkgconfig-prefix.sh)
usr/local/Makefile:
mkdir -p usr/local
ln -s $(HOME)/workspace/make-local usr/local/Makefile
opt/Makefile:
mkdir -p opt
ln -s $(HOME)/workspace/make-opt opt/Makefile
dotdirs.txt: $(HOME)/dotdirs
rm -rf dotdirs.txt
for dotdir in $(HOME)/dotdirs/*; \
do \
echo $$dotdir | tee -a dotdirs.txt;\
mkdir -p `readlink $$dotdir`; \
done;
clean:
rm -rf *
.PHONY: default clean