File: Makefile.am

package info (click to toggle)
mp3check 0.8.0-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 564 kB
  • ctags: 725
  • sloc: cpp: 5,080; sh: 335; makefile: 71
file content (33 lines) | stat: -rw-r--r-- 1,219 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = mp3check
TAPPFRAME_SRC = tappconfig.cc tappconfig.h tstring.cc tstring.h texception.h tmap.h tvector.h tfiletools.h tfiletools.cc
mp3check_SOURCES = mp3check.cc crc16.cc crc16.h id3tag.cc id3tag.h $(TAPPFRAME_SRC)
man_MANS = mp3check.1

EXTRA_DIST = $(man_MANS) Makefile.cvs
CLEANFILES = *~

cvsclean: distclean
	rm -f $(distdir).tar.gz $(distdir).lsm stamp-h.in mkinstalldirs missing libtapp install-sh configure config.h.in autoscan.log aclocal.m4 Makefile.in .dep.* COPYING
	rm -rf autom4te.cache

TARNAME = $(distdir).tar.gz
LSMNAME = $(distdir).lsm

$(LSMNAME):
	cp LSM_ENTRY $(LSMNAME)
	streplace -q "__VERSION__=$(VERSION)" $(LSMNAME)
	streplace -q "__DATE__=`date -R`" $(LSMNAME)
	streplace -q "__LSM_NAME__=`ls $(LSMNAME) -l -s |awk '{printf "%3sk %s\n",$$1,$$10}'`" $(LSMNAME)
	streplace -q "__TAR_NAME__=`ls $(TARNAME) -l -s |awk '{printf "%3sk %s\n",$$1,$$10}'`" $(LSMNAME)

mdist: dist
	streplace -qx '(md5sum not available)=md5sum: '`md5sum $(TARNAME)|awk '{print $$1}'` $(LSMNAME)

.PHONY: $(LSMNAME) mdist

dist-hook: $(LSMNAME) mp3check.spec
	sed -e "s/^\(Version:\).*/\1 $(VERSION)/" mp3check.spec > mp3check.spec.new
	mv -f mp3check.spec.new mp3check.spec