1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
  
     | 
    
      #!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
package=avr-libc
SRC=libc/avr-libc
build: build-stamp
build-stamp:
	$(checkdir)
	cd $(SRC) && ./bootstrap
	cd $(SRC) && ./configure --build=`./config.guess` --host=avr \
	    --prefix=/usr/lib --enable-device-lib \
	    --disable-versioned-doc --enable-doc \
	    --disable-ps-doc --datadir=/usr/share --bindir=/usr/bin \
	    --mandir=/usr/share/man
	cd $(SRC) && make
	touch build-stamp
build-arch: build
build-indep: build
clean:
	$(checkdir)
	-make -C $(SRC) distclean
	-rm -rf debian/tmp debian/files* core debian/substvars
	-rm build-stamp
	-rm -r libc/avr-libc/avr
	-dh_clean
binary-indep: checkroot build
	$(checkdir)
	RGBDEF=/etc/X11/rgb.txt make -C $(SRC) install DESTDIR=`pwd`/debian/$(package)
	cp $(SRC)/NEWS debian/$(package)/usr/share/doc/$(package)/changelog
	install -d debian/$(package)/usr/share/lintian/overrides
	cp debian/lintian_overrides debian/$(package)/usr/share/lintian/overrides/$(package)
	mv debian/avr-libc/usr/lib/bin debian/avr-libc/usr/
	install -d debian/avr-libc/usr/share/man/man1
	cp debian/avr-man.1 debian/avr-libc/usr/share/man/man1
	cp debian/avr-man debian/avr-libc/usr/bin/
	dh_installchangelogs
	dh_installdocs
	dh_installman
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_md5sums
	dh_gencontrol
	dh_builddeb
binary-arch: checkroot build
define checkdir
	test -f debian/rules
endef
binary: binary-indep binary-arch
checkroot:
	$(checkdir)
	test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
 
     |