Added a rule to create an rpm
[tinc] / Makefile.am
index 9903eda..fd11ce5 100644 (file)
@@ -6,7 +6,7 @@ SUBDIRS = m4 intl lib cipher src doc po redhat debian
 
 ACLOCAL_AMFLAGS =
 
-EXTRA_DIST = 
+EXTRA_DIST = system.h ABOUT-NLS
 
 CVS_CREATED = configure aclocal.m4 config.h.in config.guess \
  config.sub install-sh ltconfig ltmain.sh missing mkinstalldirs \
@@ -25,3 +25,9 @@ cvs-clean: maintainer-clean
 
 deb:
        dpkg-buildpackage -rfakeroot
+
+rpm: dist
+       cp $(distdir).tar.gz /usr/src/redhat/SOURCES/
+       cp redhat/tinc.spec /usr/src/redhat/SOURCES/
+       cd /usr/src/redhat/SOURCES/
+       rpm -bi tinc.spec