This commit is contained in:
Roman Perepelitsa 2020-11-24 12:32:19 +01:00
commit 21df7db2b2
3 changed files with 11 additions and 5 deletions

View file

@ -2,6 +2,7 @@ APPNAME ?= gitstatusd
OBJDIR ?= obj
CXX ?= g++
ZSH ?= $(shell command -v zsh 2> /dev/null)
VERSION ?= $(shell . ./build.info && printf "%s" "$$gitstatus_version")
@ -33,4 +34,8 @@ $(OBJDIR)/%.o: src/%.cc Makefile build.info | $(OBJDIR)
clean:
rm -rf -- $(OBJDIR)
pkg:
GITSTATUS_DAEMON= GITSTATUS_CACHE_DIR=$(PWD)/usrbin ./install -f
$(or $(ZSH),:) -fc 'for f in *.zsh install; do zcompile -R -- $$f.zwc $$f || exit; done'
-include $(OBJS:.o=.dep)