nix-config/.fedora/Makefile
Donovan Glover 996afdc310
fedora: Add make clean target
In attempt to keep the home directory as clean as possible, we remove
the rpmbuild directory when we're done with it, which, as of this
writing, will not contain any files anyway.
2018-11-30 16:48:03 -05:00

63 lines
1.4 KiB
Makefile

install=sudo dnf install --assumeyes
copr=sudo dnf copr enable --assumeyes
.PHONY: all
all: rice RPMs/muya.rpm install kitty wal crystal rust diff-so-fancy clean
.PHONY: rice
rice:
@${install} pop-gtk-theme pop-icon-theme breeze-cursor-theme
@../gnome/.config/gnome/extensions.sh
@../gnome/.config/gnome/antialiasing.sh
@../gnome/.config/gnome/pop-gtk-theme.sh
@../gnome/.config/gnome/breeze-cursor-theme.sh
.ONESHELL:
RPMs/muya.rpm: RPMs/muya.spec
@cd RPMs
@rm -rfv noarch
@fedpkg --release f29 local
@mv noarch/*.rpm muya.rpm
@rmdir noarch
@rm -fv *.src.rpm
.PHONY: install
install:
@${install} RPMs/muya.rpm
.PHONY: kitty
kitty:
@${copr} gagbo/kitty-latest
@${install} kitty
.PHONY: wal
wal:
@pip3 install --user pywal
.PHONY: crystal
crystal:
@sudo ./vendor/crystal-setup.sh
@${install} crystal
.PHONY: rust
rust:
@./vendor/rustup-init.sh -y
.PHONY: diff-so-fancy
diff-so-fancy:
@sudo install -Dm 755 ./vendor/diff-so-fancy /usr/bin/diff-so-fancy
.PHONY: clean
clean:
@rm -rv ~/rpmbuild
.PHONY: update
update:
@mkdir -pv vendor
@curl -L https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -o vendor/diff-so-fancy
@curl -L https://sh.rustup.rs -o vendor/rustup-init.sh
@curl -L https://dist.crystal-lang.org/rpm/setup.sh -o vendor/crystal-setup.sh
@chmod 755 vendor/diff-so-fancy
@chmod 755 vendor/rustup-init.sh
@chmod 755 vendor/crystal-setup.sh