File: Makefile.am

package info (click to toggle)
nvtv 0.4.7-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,328 kB
  • ctags: 4,303
  • sloc: ansic: 30,302; sh: 6,614; makefile: 159
file content (41 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (5)
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
35
36
37
38
39
40
41
## Process this file with automake to produce Makefile.in
## Used automake 1.4

SUBDIRS = src man test 

doc_extra = ANNOUNCE BUGS FAQ doc
doc_bincopy = AUTHORS COPYING ChangeLog INSTALL NEWS $(doc_extra)
doc_bin = README $(doc_bincopy) 

EXTRA_DIST = $(doc_extra) 

# tar aliases

tarball: tar-bin tar-src

tar-src: dist
tar-bin: dist-bin

# bin distribution
## FIXME: Maybe use install-strip and make DESTDIR=... features?
## Maybe use dist-hook? (See info doc).

distbindir = $(distdir)-bin

distdir-bin: src/nvtv src/nvtvd
	-rm -rf $(distbindir)
	mkdir $(distbindir)
	-chmod 777 $(distbindir)
	ln -s `pwd`/README.binary $(distbindir)/README
	@for f in $(doc_bincopy) ; do \
	  ln -s `pwd`/$$f $(distbindir) ; \
	done ; 
	@for f in nvtv nvtvd ; do \
	  cp -p src/$$f $(distbindir)/ ; \
	  strip $(distbindir)/$$f ; \
	done

dist-bin: distdir-bin
	-chmod -R a+r $(distbindir)
	GZIP=$(GZIP_ENV) $(TAR) chozf $(distbindir).tar.gz $(distbindir)
	-rm -rf $(distbindir)