head	1.4;
access;
symbols
	UNIONFS-1_4:1.4
	LKML-branch:1.4.0.12
	LKML:1.4
	UNIONFS-1_3-branch:1.4.0.10
	UNIONFS-1_3:1.4
	UNIONFS-1_2:1.4
	UNIONFS-1_2-branch:1.4.0.8
	UNIONFS-1_2-branchpoint:1.4
	UNIONFS_branchman:1.4
	branchman:1.4.0.6
	UNIONFS-1_1_4:1.4
	UNIONFS-1_1-patches:1.4.0.4
	UNIONFS-1_1_3:1.4
	crc-submitted-to-ols2006:1.4
	remount:1.4.0.2
	UNIONFS-1_1_2:1.4
	BEFORE_MOUNTPOINT_CROSSING:1.4
	UNIONFS-1_1_1:1.4
	UNIONFS_PRE_1_1_1:1.4
	UNIONFS-1_1:1.4
	UNIONFS_PRE_1_1:1.3.0.2
	UNIONFS-1_0_14:1.3
	UNIONFS_PRE_DENTRY_LOCKING:1.3
	UNIONFS-1_0_13:1.2
	submitted-to-tos-2005:1.2
	UNIONFS-1_0_12:1.2
	UNIONFS-1_0_11:1.2
	UNIONFS-1_0_10:1.2
	UNIONFS-1_0_9:1.1;
locks; strict;
comment	@# @;


1.4
date	2005.09.15.20.50.05;	author ezk;	state Exp;
branches
	1.4.12.1;
next	1.3;

1.3
date	2005.08.09.18.37.41;	author cwright;	state Exp;
branches;
next	1.2;

1.2
date	2005.02.19.00.51.48;	author ezk;	state Exp;
branches;
next	1.1;

1.1
date	2005.01.10.14.20.17;	author cwright;	state Exp;
branches;
next	;

1.4.12.1
date	2006.07.26.02.50.32;	author dquigley;	state dead;
branches;
next	;


desc
@@


1.4
log
@minor whitespaces, formatting, spel
@
text
@#!/usr/bin/make -f

#export DH_VERBOSE=1

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif

configure: configure-stamp
configure-stamp:
	dh_testdir
	touch configure-stamp

build-arch: configure-stamp  build-arch-stamp
build-arch-stamp:
	dh_testdir
	$(MAKE) utils LINUXSRC=/usr/include
	touch build-arch-stamp

build-indep:  configure-stamp build-indep-stamp
build-indep-stamp:
	dh_testdir
	touch build-indep-stamp

build: build-arch build-indep

clean:
	dh_testdir
	rm -f build-arch-stamp build-indep-stamp configure-stamp
	-$(MAKE) clean
	dh_clean

install: DH_OPTIONS=
install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) install-utils PREFIX=$(CURDIR)/debian/unionfs-utils/usr MANDIR=$(CURDIR)/debian/unionfs-utils/usr/share/man
	tar -v -c --exclude ".svn" --exclude "CVS" --exclude "debian" . | tar x -C debian/unionfs-source/usr/src/modules/unionfs
	cp -a debian/compat debian/*modules.in debian/rules debian/copyright debian/changelog debian/unionfs-source/usr/src/modules/unionfs/debian
	cd debian/unionfs-source/usr/src && tar c modules | bzip2 -9 > unionfs.tar.bz2 && rm -rf modules

	dh_install

binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installchangelogs ChangeLog -i
	dh_installdocs -i
	dh_link -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_shlibdeps -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch: build install
	dh_testdir -s
	dh_testroot -s
	dh_installdocs -s
	dh_installchangelogs ChangeLog -s
	dh_installexamples snapmerge -s
	dh_strip -s
	dh_link -s
	dh_compress -s
	dh_fixperms -s
	dh_installdeb -s
	dh_shlibdeps -s
	dh_gencontrol -s
	dh_md5sums -s
	dh_builddeb -s

# module-assistant stuff
PACKAGE = unionfs-modules
MA_DIR ?= /usr/share/modass
-include $(MA_DIR)/include/generic.make
-include $(MA_DIR)/include/common-rules.make

kdist_clean: prep-deb-files
	dh_clean
	$(MAKE) clean

kdist_config: prep-deb-files
binary-modules: kdist_config
	dh_testdir
	dh_testroot
	dh_clean -k
# build and install the module
	$(MAKE) KVERS=$(KVERS) LINUXSRC=$(KSRC) MODPREFIX=$(CURDIR)/debian/$(PKGNAME)/ install-mod
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol -- -v$(VERSION)
	dh_md5sums
	dh_builddeb --destdir=$(DEB_DESTDIR)

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure binary-modules kdist kdist_config kdist_image kdist_clean
#!/usr/bin/make -f

#
# Copied from ndiswrapper-source package
#

# module-assistant stuff
PACKAGE = unionfs-modules
MA_DIR ?= /usr/share/modass
-include $(MA_DIR)/include/generic.make
-include $(MA_DIR)/include/common-rules.make

kdist_clean: prep-deb-files
	dh_clean
	$(MAKE) clean

kdist_config: prep-deb-files

binary-modules: kdist_config
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs lib/modules/$(KVERS)/misc

# build and install the module
	$(MAKE) KPKG_EXTRAV_ARG=$(KPKG_EXTRAV_ARG) KSRC=$(KSRC) \
	KVER=$(KVERS) \
	INST_DIR=debian/unionfs-modules-$(KVERS)/lib/modules/$(KVERS)/misc/ install

	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol -- -v$(VERSION)
	dh_md5sums
	dh_builddeb --destdir=$(DEB_DESTDIR)
@


1.4.12.1
log
@Cleaning up the directory so we have less to make into patches
@
text
@@


1.3
log
@* debian/*: Use official debian packaging files.
@
text
@d98 1
a98 1
	dh_installdocs 
@


1.2
log
@minor NEWS updates. pesky trailing whitespace nuked
@
text
@d3 108
@


1.1
log
@* debian/*: Debian packaging from Alex de Landgraaf.
@
text
@d30 1
a30 1
	dh_installdocs 
@

