mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 13:50:47 +00:00
Patches by Matthias Klose
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@8967 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a2b6641a98
commit
783e171395
1 changed files with 57 additions and 23 deletions
80
debian/rules
vendored
80
debian/rules
vendored
|
@ -1,36 +1,70 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
tmpdir = $(shell pwd)/debian/tmp
|
||||
prefix = /usr/GNUstep/
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatibility version to use.
|
||||
export DH_COMPAT=2
|
||||
|
||||
pkg = gnustep-make
|
||||
tmpdir = $(shell pwd)/debian/$(pkg)
|
||||
prefix = usr/lib/GNUstep
|
||||
library_combo = gnu-gnu-gnu-xgps
|
||||
|
||||
build: stamp-build
|
||||
|
||||
stamp-build:
|
||||
make -f debian/rules clean
|
||||
dh_testdir
|
||||
./configure --prefix=$(prefix) --with-library-combo=$(library_combo)
|
||||
make
|
||||
$(MAKE)
|
||||
touch stamp-build
|
||||
|
||||
clean: checkroot
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f stamp-build
|
||||
./configure # so that `make distclean' works
|
||||
make distclean
|
||||
rm -f debian/files debian/substvars
|
||||
rm -rf debian/tmp
|
||||
: # configure, so that `make distclean' works
|
||||
[ -f GNUmakefile ] || ./configure \
|
||||
--prefix=/$(prefix) --with-library-combo=$(library_combo)
|
||||
$(MAKE) distclean
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
$(MAKE) install prefix=$(tmpdir)/$(prefix)/System
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
# We have nothing to do by default.
|
||||
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testversion 2
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
# dh_installdebconf
|
||||
dh_installdocs NEWS README
|
||||
dh_installexamples
|
||||
# dh_installmime
|
||||
# dh_installinit
|
||||
dh_installcron
|
||||
dh_installmanpages
|
||||
dh_installinfo
|
||||
# dh_undocumented
|
||||
dh_installchangelogs ChangeLog
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
|
||||
binary-indep: build
|
||||
|
||||
binary-arch: build checkroot
|
||||
make install prefix=$(tmpdir)/$(prefix)/System
|
||||
dpkg-shlibdeps `find -perm -100 -type f`
|
||||
-mkdir $(tmpdir)/DEBIAN
|
||||
chmod 0755 $(tmpdir)/DEBIAN
|
||||
dpkg-gencontrol -isp
|
||||
chown -R root.root $(tmpdir)
|
||||
dpkg --build debian/tmp ..
|
||||
|
||||
checkroot:
|
||||
test root = "`whoami`"
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
||||
|
|
Loading…
Reference in a new issue