File: Makefile.in

package info (click to toggle)
pdbv 2.0.10.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 436 kB
  • ctags: 52
  • sloc: perl: 1,004; sh: 291; makefile: 129
file content (19 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

MANS = $(shell ls pdbv.*)
MAN_DEF_NAME = "pdbv"


install:
	for n in $(MANS); do \
	    num=`echo $$n | tr \. \  | awk {'print $$3'}`; \
	    lang=`echo $$n | tr \. \  | awk {'print $$2'}`; \
	    if [ "$$lang" == "c" ] ; then \
		lang="" ; \
	    else \
		lang="/$$lang" ; \
	    fi ; \
	    mkdir -p $(INSTALLMANDIR)$$lang/man$$num ; \
	    install -m 644 $$n $(INSTALLMANDIR)$$lang/man$$num/$(MAN_DEF_NAME).$$num ; \
	    gzip -f -9 $(INSTALLMANDIR)$$lang/man$$num/$(MAN_DEF_NAME).$$num ; \
	done