moss

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Makefile (618B)


      1 default: moss.rb
      2 
      3 AGE?=$(shell command -v age)
      4 AGE_KEYGEN?=$(shell command -v age-keygen)
      5 GIT?=$(shell command -v git)
      6 QRENCODE?=$(shell command -v qrencode)
      7 
      8 install: default
      9 	mkdir -p $(prefix)/bin
     10 	sed < moss.rb > $(prefix)/bin/moss \
     11 	 -e 's@^AGE=.*$$@AGE="$(AGE)"@' \
     12 	 -e 's@^AGE_KEYGEN=.*$$@AGE_KEYGEN="$(AGE_KEYGEN)"@' \
     13 	 -e 's@^QRENCODE=.*$$@QRENCODE="$(QRENCODE)"@' \
     14 	 -e 's@^GIT=.*$$@GIT="$(GIT)"@'
     15 	chmod a+rx $(prefix)/bin/moss
     16 
     17 gemset.nix: Gemfile
     18 	nix-shell -p bundler -p bundix --run "bundle lock && bundix"
     19 
     20 test:
     21 	cucumber --publish-quiet -i
     22 	rspec -I .
     23 
     24 watch:
     25 	find . -type f | entr $(MAKE) test