Browse Source

getting rid of Makefile.am in debian/ - it seems to be non-standard and
is a pita to maintain anyway. instead, make distdir and distclean depend
on a partial debian-clean.

Oswald Buddenhagen 21 years ago
parent
commit
c96163a74b
2 changed files with 14 additions and 9 deletions
  1. 14 4
      Makefile.am
  2. 0 5
      debian/Makefile.am

+ 14 - 4
Makefile.am

@@ -1,16 +1,26 @@
-SUBDIRS = debian src
+SUBDIRS = src
 man_MANS = isync.1
-EXTRA_DIST = isyncrc.sample isync.spec $(man_MANS)
-DISTCLEANFILES = *~ build-stamp configure-stamp
+EXTRA_DIST = debian isyncrc.sample isync.spec $(man_MANS)
 
 log:
 	@echo "me:'Michael Elkins <me@sigpipe.org>'" > .usermap
 	@echo "melkins:'Michael Elkins <me@sigpipe.org>'" >> .usermap
+	@echo "nboullis:'Nicolas Boullis <nboullis@users.sf.net>'" >> .usermap
 	@echo "ossi:'Oswald Buddenhagen <ossi@users.sf.net>'" >> .usermap
+	@echo "tytso:'Theodore Ts'o <tytso@users.sf.net>'" >> .usermap
 	cvs2cl -U .usermap --no-wrap --separate-header
 	@rm -f .usermap ChangeLog.bak
 
+deb:
+	CFLAGS="-O2 -mcpu=i686" fakeroot debian/rules binary
+
+deb-clean:
+	dh_clean -Xsrc/
+	fakeroot debian/rules unpatch
+
+distdir distclean: deb-clean
+
 rpm:
 	make dist
 	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/rpm/SOURCES
-	rpm -ba --target=i586 --clean isync.spec
+	rpm -ba --clean isync.spec

+ 0 - 5
debian/Makefile.am

@@ -1,5 +0,0 @@
-EXTRA_DIST = changelog compat control copyright dirs docs rules
-DISTCLEANFILES = files isync.substvars
-
-distclean-local:
-	rm -rf isync