File: Makefile.am

package info (click to toggle)
profbval 1.0.22-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 628 kB
  • sloc: perl: 720; sh: 610; makefile: 37; fortran: 7
file content (32 lines) | stat: -rw-r--r-- 1,223 bytes parent folder | download | duplicates (3)
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
dist_bin_SCRIPTS = profbval
man_MANS = profbval.1

dist_noinst_DATA = $(DEBIANDATA) $(PACKAGE).spec
dist_noinst_SCRIPTS = $(DEBIANSCRIPTS)

# lkajan: CentOS 5 autoconf does not define docdir                                                                                               
docdir = $(datadir)/doc/$(PACKAGE)
dist_doc_DATA = README


SUBDIRS =  examples nn_files scr

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

distclean-local:
	rm -f $(man_MANS)

dist-hook:
	rm -rf `find '$(distdir)' -name .svn`

install-data-hook:
	find '$(DESTDIR)$(pkgdatadir)/scr' -type f -exec sed -i -e 's|__datadir__|$(datadir)|g;s|__docdir__|$(docdir)|g;s|__pkgdatadir__|$(pkgdatadir)|g;s|__sysconfdir__|$(sysconfdir)|g;' '{}' \;

install-exec-hook:
	sed -i -e 's|__datadir__|$(datadir)|g;s|__docdir__|$(docdir)|g;s|__pkgdatadir__|$(pkgdatadir)|g;s|__sysconfdir__|$(sysconfdir)|g;' "$(DESTDIR)$(bindir)/profbval"

uninstall-local:
	rm -rf "$(DESTDIR)$(pkgdatadir)"