PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/contrib/groff/src/roff/grog/Makefile.sub

https://bitbucket.org/freebsd/freebsd-head/
Unknown | 32 lines | 27 code | 5 blank | 0 comment | 0 complexity | 91ca3c794e990add5c423ba49a9c2972 MD5 | raw file
 1MAN1=grog.n
 2CLEANADD=grog
 3
 4all: grog
 5
 6grog: grog.sh
 7	rm -f $@
 8	sed -e "s|@g@|$(g)|g" \
 9	  -e "s|@VERSION@|$(version)$(revision)|" \
10	  -e $(SH_SCRIPT_SED_CMD) $(srcdir)/grog.sh >$@
11	chmod +x $@
12
13grog.old: grog.pl grog.sh
14	if test -n "$(PERLPATH)" && test -f "$(PERLPATH)"; then \
15	  rm -f $@; \
16	  sed -e "s|/usr/bin/perl|$(PERLPATH)|" \
17	      -e "s|@VERSION@|$(version)$(revision)|" $(srcdir)/grog.pl >$@; \
18	else \
19	  rm -f $@; \
20	  sed -e "s|@g@|$(g)|g" \
21	      -e "s|@VERSION@|$(version)$(revision)|" \
22	      -e $(SH_SCRIPT_SED_CMD) $(srcdir)/grog.sh >$@; \
23	fi
24	chmod +x $@
25
26install_data: grog
27	-test -d $(bindir) || $(mkinstalldirs) $(bindir)
28	-rm -f $(bindir)/grog
29	$(INSTALL_SCRIPT) grog $(bindir)/grog
30
31uninstall_sub:
32	-rm -f $(bindir)/grog