diff options
author | starkos <none@none> | 2008-05-05 18:12:38 +0400 |
---|---|---|
committer | starkos <none@none> | 2008-05-05 18:12:38 +0400 |
commit | 7785946a6050182a4cdd5ae3fcd56cd17e7f7cc2 (patch) | |
tree | a8d717e06a471aa970c420fffc245468bc2a1420 /packages/debian/rules | |
parent | 81a4b2e3d598106fc3c20592123b2e76076f3b6d (diff) |
Copied packaging files to 4.0 trunk
Diffstat (limited to 'packages/debian/rules')
-rw-r--r-- | packages/debian/rules | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/packages/debian/rules b/packages/debian/rules new file mode 100644 index 0000000..5a3824a --- /dev/null +++ b/packages/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f + +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: build-stamp + +build-stamp: configure-stamp + dh_testdir + + $(MAKE) CONFIG=Release + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + $(MAKE) CONFIG=Release clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cp $(CURDIR)/bin/premake $(CURDIR)/debian/premake/usr/bin + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs $(CURDIR)/CHANGES.txt + dh_installdocs + dh_installman $(CURDIR)/debian/premake.1 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure |