--- gforth/Makedist.in 2008/07/15 16:11:49 1.28 +++ gforth/Makedist.in 2012/03/19 21:51:38 1.35 @@ -1,7 +1,7 @@ #make dist targets (workaround for broken makes) #use GNU make if your make does not grok this. -#Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008 Free Software Foundation, Inc. +#Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008,2010,2011 Free Software Foundation, Inc. #This file is part of Gforth. @@ -27,10 +27,8 @@ DOBJECTS=engine/*.o BINONLYDIST = config.status Makefile Makedist \ $(ENGINES) $(ENGINES_FAST) \ $(DOBJECTS) engine/config.h engine/Makefile \ - engine/gforth$(EXE) engine/gforth-fast$(EXE) \ - engine/gforth-ditc$(EXE) engine/gforth-itc$(EXE) \ - $(addprefix engine/,$(PROFEXES)) \ - stamp-h kernel/version.fs build-ec INSTALL.BINDIST + $(wildcard engine/gforth*$(EXE)) \ + stamp-h kernel/version.fs envos.fs build-ec INSTALL.BINDIST #use dist targets only when srcdir=. ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) @@ -91,12 +89,12 @@ dbindist: $(SOURCES) $(FORTH_GEN0) @KERN -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) - $(STRIP) gforth-$(VERSION){,/engine}/gforth{,-fast,-ditc,-itc}$(EXE) + -$(STRIP) gforth-$(VERSION){,/engine}/gforth*$(EXE) $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).bin.@host@.tar.gz #All file names in a binary distribution distfiles: - @echo $(SOURCES) kernel/version.fs machpc.fs $(FORTH_GEN0) compat/strcomp.fs gforthmi @KERNEL@ $(DOCDIST) $(BINONLYDIST) + @echo $(SOURCES) $(PRECISE) machpc.fs $(FORTH_GEN0) compat/strcomp.fs gforthmi @KERNEL@ $(DOCDIST) $(BINONLYDIST) #makes a package with only the stuff not present in the source #package. For installation the source package is still needed! @@ -111,3 +109,14 @@ dbinonlydist: $(SOURCES) $(FORTH_GEN0) @ $(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) $(STRIP) gforth-$(VERSION)/gforth$(EXE) $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).binonly.@host@.tar.gz + +ddebdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) debian.control + -rm -rf debian + mkdir debian + make package=$$PWD/debian install + mkdir debian/DEBIAN + (cd debian; find . -name '*' -exec md5sum '{}' ';') >debian/DEBIAN/md5sums + cp debian.control debian/DEBIAN/control + dpkg-deb --build debian + mv debian.deb gforth_$(VERSION)_@host_cpu@.deb + rm -rf md5sums debian