include config.mk SHELL := /bin/bash CONFIG = config include ${CONFIG} all: sarc help: @echo "sarc compilation" @echo "" @echo " c, clean: cleans dir" @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 cp ./profiles/${PROFILE}/keys.h ./wm/dwm-6.4/ cp ./profiles/${PROFILE}/blocks.h ./wm/dwmblocks/ cp ./theme/${THEME}/${THEME}.png ~/.config/wallpaper.png cp ./theme/${THEME}/colors.h . cp wm/${DMENU}/config.h wm/${DMENU}/real_config.h ./scripts/pre_build.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 wm/${DMENU}/real_config.h part: ./scripts/cp.sh 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