File: Makefile.am

package info (click to toggle)
librg-utils-perl 1.0.43-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,632 kB
  • sloc: perl: 9,665; sh: 625; makefile: 37
file content (34 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SUBDIRS = lib mat

dist_noinst_DATA = Build.PL.in $(PACKAGE).spec.in
dist_noinst_SCRIPTS =

dist_pkgdata_SCRIPTS = blast2saf.pl blastpgp_to_saf.pl conv_hssp2saf.pl copf.pl dbSwiss hssp_filter.pl safFilterRed.pl

man_MANS = dbSwiss.1
man3_MANS =

CLEANFILES = $(man_MANS)

all-local: build-stamp

clean-local:
	if [ -e Build ]; then perl Build clean && rm -f Build build-stamp; fi

distclean-local:
	rm -rf _build MYMETA.yml MANIFEST MANIFEST.SKIP.bak MANIFEST.SKIP

build-stamp: Build.PL
	perl Build.PL installdirs=vendor && perl Build manifest && perl Build && touch build-stamp

install-data-local:
	perl Build install destdir=$(DESTDIR) $(INSTALL_BASE_ARG) create_packlist=0

%.1:	%
	sed -e 's|__pkgdatadir__|$(pkgdatadir)|g;s|__sysconfdir__|$(sysconfdir)|g;s|__bindir__|$(bindir)|g;s|__VERSION__|$(VERSION)|g' "$<" | \
	pod2man -c 'User Commands' -r "$(VERSION)" -name $(shell echo "$(basename $@)" | tr '[:lower:]' '[:upper:]') > "$@"

install-data-hook:
	for f in "$(DESTDIR)$(pkgdatadir)/copf.pl" "$(DESTDIR)$(pkgdatadir)/hssp_filter.pl"; do \
		sed -i -e 's|__bindir__|$(bindir)|g;s|__datadir__|$(datadir)|g;s|__docdir__|$(docdir)|g;s|__pkgdatadir__|$(pkgdatadir)|g;s|__PREFIX__|$(prefix)|g;s|__sysconfdir__|$(sysconfdir)|g;s|__VERSION__|$(VERSION)|g;' "$$f"; \
	done