head     1.1;
branch   1.1.1;
access   ;
symbols  gfxboot-grub25:1.1.1.1 morphix:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2005.10.17.17.14.26;  author tcheun;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2005.10.17.17.14.26;  author tcheun;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
DEB_HOST_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)

VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
EXTRA_VERSION = Debian $(VERSION)

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CONFIG_DEBUG = true
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
endif

export EXTRA_VERSION CONFIG_DEBUG

PACKAGE_PREFIX = morphix-iso-grubtheme

PACKAGES_UDEB = $(PACKAGE_PREFIX)-udeb

DEBHELPER_PACKAGES_UDEB = $(patsubst %,-p%,$(PACKAGES_UDEB))

build-arch: build-arch-udeb-all
build-arch-udeb-all: build-arch-udeb

.NOTPARALLEL: build-arch-static build-arch-udeb

build-arch-udeb: build-arch-udeb-stamp
build-arch-udeb-stamp: 
	mkdir $(CURDIR)/debian/tmp
	chmod 0755 $(CURDIR)/debian/tmp
	mkdir -p $(CURDIR)/debian/tmp/boot/grub
	install $(CURDIR)/boot/message $(CURDIR)/debian/tmp/boot/grub
	#rm $(CURDIR)/debian/tmp/boot/grub/log
	touch $@@

build: build-arch

clean:
	dh_testdir
	dh_testroot
	rm -f build-*-stamp

	dh_clean

install-udeb: build-arch-udeb-all
	dh_testdir
	dh_testroot
	dh_clean -k $(DEBHELPER_PACKAGES_UDEB)
	dh_installdirs $(DEBHELPER_PACKAGES_UDEB)

#	for i in $(PACKAGES_UDEB); do \
#	( \
#		cd install-$$i; \
#		find -type d -exec install -d $(CURDIR)/debian/$$i/{} \;; \
#		find \( -type f -o -type l \) -exec cp -a {} $(CURDIR)/debian/$$i/{} \;; \
#	); \
#	done

binary-arch: binary-arch-udeb

# Build architecture-dependent files here.
binary-arch-udeb: build-arch-udeb-all install-udeb
	dh_testdir
	dh_testroot
	dh_strip $(DEBHELPER_PACKAGES_UDEB)
	dh_link $(DEBHELPER_PACKAGES_UDEB)
	dh_compress $(DEBHELPER_PACKAGES_UDEB)
	dh_fixperms $(DEBHELPER_PACKAGES_UDEB)
	dh_installdeb $(DEBHELPER_PACKAGES_UDEB)
	dh_shlibdeps $(DEBHELPER_PACKAGES_UDEB)
	dh_di_gencontrol -t udeb
	dh_di_builddeb -t udeb

binary: binary-arch
.PHONY: build clean binary-indep binary-arch binary install
@


1.1.1.1
log
@morhhix
@
text
@@
