# Makefile for userv-git-daemon # # This was written by Tony Finch and subsequently # heavily modified by Ian Jackson # You may do anything with it, at your own risk. # http://creativecommons.org/publicdomain/zero/1.0/ include ../settings.make TARGETS= git-upload-pack inetd.conf git-daemon git-service SUBSTVARS= libuserv etcuserv all: $(TARGETS) sedscript: Makefile echo >$@.new '$(foreach f, $(SUBSTVARS), s,@$f@,$($f),g; )' echo >>$@.new '/@@READ_URLMAP@@/c\' perl >>$@.new -pe 's/$$/\\/' $@.new; \ if test -x $<; then chmod +x $@.new; fi; \ mv -f $@.new $@ install: all mkdir -p $(libuserv) $(etcuserv) $(services) cp git-daemon git-service $(libuserv) cp git-upload-pack $(services) cp git-urlmap $(etcuserv) clean: rm -f $(TARGETS) # end