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
|
#!/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=explorer
build:
$(checkdir)
./configure --prefix=/usr
make
touch build
clean:
$(checkdir)
-rm -f build
-make distclean
-rm -f `find . -name "*~"`
-rm -rf `find debian/* -type d` debian/files* core
-rm -f debian/*substvars
-rm -f debian/RELEASED
binary-indep: checkroot build
$(checkdir)
binary-arch: checkroot build
$(checkdir)
-rm -fr debian/tmp
-rm -fr debian/explorer-icons-orig
-rm -fr debian/explorer-icons-ms
-rm -fr debian/explorer-icons-kde
-rm -fr `find debian/* -type d`
# Install files
make install prefix=`pwd`/debian/tmp/usr
make install-icons-orig prefix=`pwd`/debian/explorer-icons-orig/usr
make install-icons-ms prefix=`pwd`/debian/explorer-icons-ms/usr
make install-icons-kde prefix=`pwd`/debian/explorer-icons-kde/usr
# Ready control area
mkdir debian/explorer-icons-orig/usr/doc
mkdir debian/explorer-icons-ms/usr/doc
mkdir debian/explorer-icons-kde/usr/doc
ln -s explorer debian/explorer-icons-orig/usr/doc/explorer-icons-kde
ln -s explorer debian/explorer-icons-ms/usr/doc/explorer-icons-ms
ln -s explorer debian/explorer-icons-kde/usr/doc/explorer-icons-orig
# cd debian/tmp/usr/doc/explorer && gzip ms.txt vfsl.html explorer.lsm BUGS INSTALL INSTALL.qt README.developer TODO
debstd -u BUGS CHANGES README README.developer TODO
dpkg-gencontrol -pexplorer
# Build packages
dpkg --build debian/tmp ..
define checkdir
test -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|