1# -*- mode: Makefile -*-
2## Process this file with automake to produce Makefile.in
3
4#SUBDIRS=spicefile utilities src scheme doc remote
5SUBDIRS=spicefile
6
7EXTRA_DIST=autogen.sh gwave.spec TODO FAQ plotutils-2.4.1.patch
8
9# distribute some extra directories that don't have anything to build
10# or install in them
11dist-hook:
12	mkdir $(distdir)/examples
13	rsync -C -p examples/* $(distdir)/examples
14	mkdir $(distdir)/icons
15	rsync -C -p icons/* $(distdir)/icons
16
17# build RPMs - but only on a redhat system
18rpm:	$(distdir).tar.gz
19	cp gwave.spec $(distdir).tar.gz /usr/src/redhat/SOURCES
20	cd /usr/src/redhat/SOURCES; rpmbuild -ba gwave.spec
21