Codebase list vit / debian/1.3_beta1-1 Makefile.in
debian/1.3_beta1-1

Tree @debian/1.3_beta1-1 (Download .tar.gz)

Makefile.in @debian/1.3_beta1-1raw · history · blame

PARTS = args.pl cmdline.pl cmds.pl color.pl curses.pl draw.pl env.pl exec.pl \
  getch.pl misc.pl prompt.pl read.pl search.pl screen.pl vitrc.pl

PREFIX=@prefix@
VERSION=@VERSION@
TASK=@TASK@
PERL=@PERL@
CLEAR=@CLEAR@

.PHONY : install

build: 
	@echo "adding vit.pl to vit"
	@if which git > /dev/null && git rev-parse > /dev/null 2>&1; \
	  then GITHASH=" ($$(git rev-parse --short HEAD))"; \
	else GITHASH=""; \
	fi && \
	cat vit.pl | grep -v ^require \
	  | sed "s:%prefix%:$(PREFIX):" \
	  | sed "s/%BUILD%/$(VERSION) built after `date -r CHANGES`/" \
	  | sed "s/%VERSION%/$(VERSION)$${GITHASH}/" \
	  | sed "s:%TASK%:$(TASK):" \
	  | sed "s:%CLEAR%:$(CLEAR):" \
	  > vit
	@for f in $(PARTS); do \
	  echo "adding $$f to vit"; \
	  echo "########################################################" >> vit; \
	  echo "## $$f..." >> vit; \
	  grep -v ^return $$f >> vit; \
	done
	chmod 755 vit

install:
	mkdir -p $(DESTDIR)/@prefix@/bin
	cp vit $(DESTDIR)/@prefix@/bin/
	mkdir -p $(DESTDIR)/@prefix@/share/man/man1
	cp vit.1 $(DESTDIR)/@prefix@/share/man/man1/
	mkdir -p $(DESTDIR)/@prefix@/share/man/man5
	cp vitrc.5 $(DESTDIR)/@prefix@/share/man/man5/
	mkdir -p $(DESTDIR)/@prefix@/share/vit
	cp commands $(DESTDIR)/@prefix@/share/vit/commands

autoconf:
	@make -f .makefile autoconf

release:
	@make -f .makefile release

push:
	@make -f .makefile push

debug:
	@make -f .makefile debug

test:
	@make -f .makefile test

diffs:
	@make -f .makefile diffs

ci:
	@make -f .makefile ci