|
|
1.1 ! root 1: #!/usr/bin/make -f ! 2: ############################ -*- Mode: Makefile -*- ########################### ! 3: ## rules --- ! 4: ## Author : Marcus Brinkmann <[email protected]> ! 5: ## Created On : Sat, 1 Aug 1998 21:33:31 +0200 ! 6: ## Created On Node : localhost ! 7: ## Last Modified By : Marcus Brinkmann ! 8: ## Last Modified On : Sun, 8 Nov 1998 13:55:22 +0100 ! 9: ## Last Machine Used: localhost ! 10: ## Update Count : 1 ! 11: ## Status : Unknown, Use with caution! ! 12: ## HISTORY : ! 13: ## Description : ! 14: ## ! 15: ############################################################################### ! 16: ! 17: # The name of the package (for example, `emacs'). ! 18: package := oskit-mach ! 19: package-dev := gnumach-dev ! 20: DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ! 21: DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ! 22: ! 23: # Configuration variables (these should be pretty generic) ! 24: CC = cc ! 25: CFLAGS = -O4 -g -pipe ! 26: LDFLAGS = -s ! 27: PREFIX = /usr ! 28: BINDIR = $(PREFIX)/bin ! 29: MANDIR = $(PREFIX)/man ! 30: INFODIR = $(PREFIX)/share/info ! 31: DOCDIR = $(PREFIX)/share/doc/$(package) ! 32: DOCDIR-DEV = $(PREFIX)/share/doc/$(package-dev) ! 33: ! 34: # Package specific stuff. The idea is to try to make the rules ! 35: # generic (gradually). ! 36: ! 37: FILES_TO_CLEAN = debian/files machine ! 38: DIRS_TO_CLEAN = debian/tmp build build-dbg ! 39: STAMPS_TO_CLEAN = stamp-build stamp-configure ! 40: ! 41: install_file = install -o root -g root -m 644 ! 42: install_program = install -s -o root -g root -m 755 ! 43: install_script = install -o root -g root -m 755 ! 44: make_directory = install -d -o root -g root -m 755 ! 45: ! 46: define checkdir ! 47: test -f debian/rules ! 48: endef ! 49: ! 50: define checkroot ! 51: @test 0 = "`id -u`" || (echo need root privileges; exit 1) ! 52: endef ! 53: ! 54: configure: stamp-configure ! 55: stamp-configure: ! 56: $(checkdir) ! 57: -mkdir build ! 58: cd build && \ ! 59: ../configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) ! 60: touch stamp-configure ! 61: ! 62: stamp-configure-dbg: ! 63: touch stamp-configure-dbg ! 64: ! 65: all build: stamp-build stamp-build-dbg ! 66: stamp-build: stamp-configure ! 67: $(checkdir) ! 68: cd build && $(MAKE) ! 69: cd build/doc && $(MAKE) ! 70: touch stamp-build ! 71: ! 72: stamp-build-dbg: stamp-configure-dbg ! 73: touch stamp-build-dbg ! 74: ! 75: clean: ! 76: $(checkdir) ! 77: -rm -f $(FILES_TO_CLEAN) $(STAMPS_TO_CLEAN) ! 78: -rm -rf $(DIRS_TO_CLEAN) ! 79: -rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ ! 80: -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ ! 81: -o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` ! 82: ! 83: binary: binary-indep binary-arch ! 84: ! 85: # Build architecture-independent files here. ! 86: ! 87: binary-indep: build ! 88: $(checkdir) ! 89: $(checkroot) ! 90: -rm -rf debian/tmp ! 91: ! 92: $(make_directory) debian/tmp/DEBIAN debian/tmp$(DOCDIR-DEV) ! 93: ! 94: pfx=`cd debian/tmp && pwd` && cd build && $(MAKE) install-headers prefix=$$pfx ! 95: mv debian/tmp/include debian/tmp/usr/. ! 96: -find debian/tmp -type d | xargs chmod g-w ! 97: ! 98: $(install_file) NEWS debian/tmp$(DOCDIR-DEV) ! 99: $(install_file) ChangeLog debian/tmp$(DOCDIR-DEV)/ChangeLog ! 100: $(install_file) ChangeLog.0 debian/tmp$(DOCDIR-DEV) ! 101: $(install_file) ChangeLog.00 debian/tmp$(DOCDIR-DEV) ! 102: $(install_file) debian/changelog debian/tmp$(DOCDIR-DEV)/changelog.Debian ! 103: gzip -9frq debian/tmp$(DOCDIR-DEV)/. ! 104: $(install_file) debian/copyright debian/tmp$(DOCDIR-DEV) ! 105: ln -s ChangeLog.gz debian/tmp$(DOCDIR-DEV)/changelog.gz ! 106: ! 107: dpkg-gencontrol -isp -p$(package-dev) -Pdebian/tmp ! 108: chown -R root.root debian/tmp ! 109: dpkg --build debian/tmp .. ! 110: ! 111: binary-arch: binary-gnumach #binary-gnumach-dbg ! 112: ! 113: binary-gnumach: stamp-build ! 114: $(checkdir) ! 115: $(checkroot) ! 116: -rm -rf debian/tmp ! 117: ! 118: $(make_directory) debian/tmp/DEBIAN debian/tmp$(DOCDIR) debian/tmp$(INFODIR) ! 119: ! 120: pfx=`cd debian/tmp && pwd` && cd build && $(MAKE) install-kernel prefix=$$pfx ! 121: strip --strip-all debian/tmp/boot/$(package) ! 122: gzip -9fq debian/tmp/boot/$(package) ! 123: chmod a-x debian/tmp/boot/$(package).gz ! 124: -find debian/tmp -type d | xargs chmod g-w ! 125: $(install_file) build/doc/mach.info* debian/tmp$(INFODIR) ! 126: -gzip -9frq debian/tmp$(INFODIR) ! 127: ! 128: ! 129: $(install_file) README debian/tmp$(DOCDIR) ! 130: $(install_file) NEWS debian/tmp$(DOCDIR) ! 131: $(install_file) ChangeLog.oskit debian/tmp$(DOCDIR) ! 132: $(install_file) ChangeLog debian/tmp$(DOCDIR) ! 133: $(install_file) ChangeLog.0 debian/tmp$(DOCDIR) ! 134: $(install_file) ChangeLog.00 debian/tmp$(DOCDIR) ! 135: $(install_file) debian/README.Debian debian/tmp$(DOCDIR) ! 136: $(install_file) debian/changelog debian/tmp$(DOCDIR)/changelog.Debian ! 137: gzip -9frq debian/tmp$(DOCDIR)/. ! 138: $(install_file) debian/copyright debian/tmp$(DOCDIR) ! 139: ln -s ChangeLog.gz debian/tmp$(DOCDIR)/changelog.gz ! 140: ! 141: $(install_script) debian/postinst debian/tmp/DEBIAN ! 142: $(install_script) debian/prerm debian/tmp/DEBIAN ! 143: dpkg-gencontrol -isp -p$(package) -Pdebian/tmp ! 144: chown -R root.root debian/tmp ! 145: dpkg --build debian/tmp .. ! 146: ! 147: binary-gnumach-dbg: stamp-build-dbg ! 148: $(checkdir) ! 149: $(checkroot) ! 150: -rm -rf debian/tmp ! 151: ! 152: $(make_directory) debian/tmp/DEBIAN debian/tmp$(DOCDIR)-dbg ! 153: ! 154: pfx=`cd debian/tmp && pwd` && cd build-dbg && $(MAKE) install-kernel prefix=$$pfx ! 155: mv debian/tmp/boot/gnumach debian/tmp/boot/gnumach-dbg ! 156: gzip -9fq debian/tmp/boot/gnumach-dbg ! 157: -find debian/tmp -type d | xargs chmod g-w ! 158: ! 159: $(install_file) README debian/tmp$(DOCDIR)-dbg ! 160: $(install_file) NEWS debian/tmp$(DOCDIR)-dbg ! 161: $(install_file) ChangeLog debian/tmp$(DOCDIR)-dbg/ChangeLog ! 162: $(install_file) ChangeLog.0 debian/tmp$(DOCDIR)-dbg ! 163: $(install_file) ChangeLog.00 debian/tmp$(DOCDIR)-dbg ! 164: $(install_file) i386/README-Drivers debian/tmp$(DOCDIR)-dbg ! 165: $(install_file) debian/README.Debian debian/tmp$(DOCDIR)-dbg ! 166: $(install_file) debian/changelog debian/tmp$(DOCDIR)-dbg/changelog.Debian ! 167: gzip -9frq debian/tmp$(DOCDIR)-dbg/. ! 168: $(install_file) debian/copyright debian/tmp$(DOCDIR)-dbg ! 169: ln -s ChangeLog.gz debian/tmp$(DOCDIR)-dbg/changelog.gz ! 170: ! 171: dpkg-gencontrol -isp -p$(package)-dbg -Pdebian/tmp ! 172: chown -R root.root debian/tmp ! 173: dpkg --build debian/tmp .. ! 174: ! 175: binary-indep: build ! 176: # We have nothing to do here. ! 177: ! 178: .PHONY: build clean binary-indep binary-arch binary-gnumach binary-gnumach-dbg binary configure
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.