From: nishi Date: Mon, 17 Jun 2024 00:24:08 +0000 (+0000) Subject: can build deb now X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9ac530a8d7601d3cbbf0fdb74c164e7c06a7b5a7;p=dataworks.git can build deb now git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@317 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Makefiles/deb.mk b/Makefiles/deb.mk index 3bf1eb0..7441089 100644 --- a/Makefiles/deb.mk +++ b/Makefiles/deb.mk @@ -1,3 +1,28 @@ # $Id$ .PHONY: ./Package/dataworks.deb + +./Package/dataworks.deb: no-doc + rm -rf workdir-deb + mkdir workdir-deb + mkdir workdir-deb/DEBIAN + mkdir -p workdir-deb/usr/lib + mkdir -p workdir-deb/usr/include + mkdir -p workdir-deb/usr/bin + cp Library/*.so workdir-deb/usr/lib/ + cp Library/*.a workdir-deb/usr/lib/ + cp Library/*.h workdir-deb/usr/include/ + cp Client/dataworks workdir-deb/usr/bin/ + cp Server/dataworks_server workdir-deb/usr/bin/ + cp RemoteClient/dataworks_remote_client workdir-deb/usr/bin/ + cd workdir-deb && find usr -type f | xargs md5sum > DEBIAN/md5sums + echo "Package: dataworks" > workdir-deb/DEBIAN/control + echo "Version: $(VERSION)" >> workdir-deb/DEBIAN/control + echo "Architecture: $(DEB_ARCH)" >> workdir-deb/DEBIAN/control + echo "Maintainer: Nishi > workdir-deb/DEBIAN/control + echo "Depends: libc6 (>= 2.14)" >> workdir-deb/DEBIAN/control + echo "Homepage: http://nishi.boats/dataworks" >> workdir-deb/DEBIAN/control + echo "Installed-Size: `du -k workdir-deb/usr | cut -d"\t" -f1`" >> workdir-deb/DEBIAN/control + echo "Description: Simple DBMS written in C" >> workdir-deb/DEBIAN/control + fakeroot dpkg-deb --build workdir-deb $@ + rm -rf workdir-deb