summaryrefslogtreecommitdiff
path: root/Makefile
blob: 755cf6157f17058132981eda1554e9e4d23fae4a (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include config.mk
SHELL := /bin/bash
all: sarc

help:
	@echo "sarc compilation"
	@echo ""
	@echo "		c, clean:	cleans dir"
	@echo "		  cleanp:	really cleans dir"
	@echo "	      cfg,config:	sets a theme for sarc"
	@echo "		 install:	installs build"
	@echo
	@echo "running with no args will just build it"
config:
	rm -rf .config
	@./scripts/set_theme.sh
	@echo "Run make to compile sarc"
sarc: clean 
	./scripts/cp.sh
	mkdir -p ~/.config/sarc/
	@echo "Compiling wm..."
	make wm -C wm
	make utils -C utils
	rm -rf colors.h
	@echo
	@echo "Finished! Run make install to install"
c: clean
cfg: config
install: feh_fix
	make install-wm -C wm
	make install-utils -C utils
	install scripts/sarc.sh /usr/local/bin
	mkdir -p $(PREFIX)/share/doc/sarc
	cp sarc.1 $(MANPREFIX)/man1/
	@echo
clean:
	make clean-wm -C wm
	make clean-utils -C utils
	rm -rf colors.h
part:
	./scripts/cp.sh
cleanp: clean
	rm -rf .config 
feh_fix:
	cp scripts/fehbg ${PREFIX}/bin/
test1:
	mkdir test
	cp -r * test/
uninstall:
	make uninstall -C $(DWM)
	make uninstall -C $(ST)
	make uninstall -C $(DMENU)
	make uninstall -C surf
	make uninstall -C nsxiv
	make uninstall -C tabbed
	make uninstall -C dwmblocks
	make uninstall -C farbfeld
	make uninstall -C wmname
	make uninstall -C scroll-0.1