diff --git a/Makefile b/Makefile index 0d1c6f6..b0c9326 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,9 @@ install: all rm -rf $(DESTDIR)$(PREFIX)/share/spmenu/ mkdir -p $(DESTDIR)$(PREFIX)/bin mkdir -p $(DESTDIR)$(PREFIX)/share/spmenu + cp docs/example.Xresources example.Xresources.orig && sed -i "s/VERSION/$(VERSION)/g" docs/example.Xresources cp -r docs/* $(DESTDIR)$(PREFIX)/share/spmenu/ + mv example.Xresources.orig docs/example.Xresources echo "${VERSION}" > $(DESTDIR)$(PREFIX)/share/spmenu/version echo "${CC}" > $(DESTDIR)$(PREFIX)/share/spmenu/cc echo "${CFLAGS}" > $(DESTDIR)$(PREFIX)/share/spmenu/cflags @@ -74,6 +76,8 @@ uninstall: $(DESTDIR)$(PREFIX)/bin/spmenu* help: + @echo spmenu Makefile help + @echo @echo install: Installs spmenu. You may need to run this as root. @echo uninstall: Uninstalls spmenu. You may need to run this as root. @echo dist: Creates a release for spmenu. diff --git a/docs/example.Xresources b/docs/example.Xresources index 4a59f1b..5ccbd80 100644 --- a/docs/example.Xresources +++ b/docs/example.Xresources @@ -1,4 +1,4 @@ -! spmenu 0.2.2 default configuration +! spmenu VERSION default configuration ! ! You may copy this configuration file to ~/.config/spmenu/spmenurc OR ~/.spmenurc, it will be loaded on runtime. ! It is .Xresources syntax. As such you may also append it to your existing .Xresources configuration, use programs like Pywal to have universal colorschemes.