File: Makefile.am

package info (click to toggle)
lavaps 2.7-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,824 kB
  • ctags: 1,190
  • sloc: cpp: 6,382; sh: 3,227; ansic: 1,649; tcl: 707; makefile: 312; perl: 202
file content (84 lines) | stat: -rw-r--r-- 2,211 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
## Process this file with automake to produce Makefile.in

#
# Copyright (C) 1999-2004 by John Heidemann <johnh@isi.edu>
# $Id: Makefile.am,v 1.54 2004/12/25 02:41:28 johnh Exp $
#

## deep
AUTOMAKE_OPTIONS = 1.0 foreign

PACKAGE = @PACKAGE@
VERSION = @VERSION@

srcdir = @srcdir@
top_srcdir = @top_srcdir@

SUBDIRS = doc po tcl2cc src

DOCDIR=doc

EXTRA_DIST=lavaps.spec.in \
	configure.gtk.ac configure.tcltk.ac \
	intltool-extract.in	\
	intltool-merge.in	\
	intltool-update.in

DISTCLEANFILES =		\
	intltool-extract	\
	intltool-merge		\
	intltool-update		


#
# top-level documentation
#


README: $(DOCDIR)/master.pod
	$(PERL) $(DOCDIR)/podprune -k NAME "WHAT'S NEW" DESCRIPTION REQUIREMENTS AVAILABILITY "RELEASE HISTORY" "TO DOS" COPYRIGHT AUTHOR <$(DOCDIR)/master.pod >README.pod
	$(POD2TEXT) README.pod | fmt >README
	rm README.pod


#
# ports and rpms
#

dist_tar_gz=$(PACKAGE)-$(VERSION).tar.gz

$(dist_tar_gz): dist

rpms: lavaps.spec
	cp $(dist_tar_gz) /usr/src/redhat/SOURCES
	cp lavaps.spec /usr/src/redhat/SPECS
	( cd /usr/src/redhat; rpmbuild -ba SPECS/lavaps.spec; )
	cp /usr/src/redhat/RPMS/i386/lavaps-$(VERSION)-1.i386.rpm .
	cp /usr/src/redhat/SRPMS/lavaps-$(VERSION)-1.src.rpm .

# this is kind of a hack so I can do it from redhat
freebsdport:
	echo "freebsdport is broken since the release 2.5 source reorg until a freebsd person can repair it"
	false
	echo 'MD5 ('$(dist_tar_gz)') = '`md5sum $(dist_tar_gz) | awk '{print $$1}'` >freebsd/port/files/md5
	cd freebsd; tar czvf ../$(PACKAGE)-$(VERSION)-freebsd-port.tar.gz lavaps-freebsd-port/{Makefile,files,pkg/DESCR,pkg/COMMENT,pkg/PLIST}

WEBDIR=/home/johnh/LIB/WWW/SOFTWARE/LAVAPS

release: doc/lavaps_man.html
	@echo "You should have done \"make dist; make rpms; make freebsdport\""
	cp lavaps-$(VERSION)-1.i386.rpm $(WEBDIR)
	cp lavaps-$(VERSION)-1.src.rpm $(WEBDIR)
	cp lavaps-$(VERSION).tar.gz $(WEBDIR)
	echo freebsdport broken cp $(PACKAGE)-$(VERSION)-freebsd-port.tar.gz $(WEBDIR)
	cp doc/lavaps_man.html $(WEBDIR)

vc_checkedout:
	vc_checkedout -e . $(SUBDIRS)

#
# manual depends
#
configure: configure.tcltk.ac configure.gtk.ac configure.ac
Makefile: Makefile.in Makefile.am configure.tcltk.ac configure.gtk.ac configure.ac