-# $Id: common-decl.mk 302 2024-06-14 12:23:13Z nishi $
+# $Id$
CC = cc
SHCC = cc
-# $Id: common.mk 312 2024-06-15 02:13:12Z nishi $
+# $Id$
.PHONY: all no-doc replace format clean ./Library ./Client ./Document ./Server ./Grammar ./RemoteClient ./Installer ./Tool get-version thanks-banner dos-installer
--- /dev/null
+# $Id$
+
+.PHONY: ./Package/dataworks.deb
-# $Id: common.mk 312 2024-06-15 02:13:12Z nishi $
+# $Id$
.PHONY: dosbox prepare-dosbox dosbox-x cleanup-dosbox
-# $Id: common.mk 312 2024-06-15 02:13:12Z nishi $
+# $Id$
-.PHONY: ./Package/PKGBUILD
-
-./Package/PKGBUILD:
- echo "# \$$Id\$$" > $@
- echo >> $@
- echo "pkgname='dataworks'" >> $@
- echo "pkgver='"$(VERSION)"'" >> $@
- echo "pkgdesc='Database System'" >> $@
- echo "arch=('i686' 'x86_64')" >> $@
- echo "license=('BSD')" >> $@
- echo "pkgrel='`cat ./Package/increment-PKGBUILD`'" >> $@
- echo "makedepends=('byacc')" >> $@
- echo "source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision="`svn info -r HEAD | grep "Revision" | grep -Eo "[0-9]+" | xargs expr 1 +`"')" >> $@
- echo "sha256sums=('SKIP')" >> $@
- echo >> $@
- echo "build() {" >> $@
- echo " cd dataworks" >> $@
- echo " make clean" >> $@
- echo " make no-doc YACC=byacc" >> $@
- echo "}" >> $@
- echo >> $@
- echo "package() {" >> $@
- echo " cd dataworks" >> $@
- echo " mkdir -p \$$pkgdir/usr/include" >> $@
- echo " mkdir -p \$$pkgdir/usr/lib" >> $@
- echo " mkdir -p \$$pkgdir/usr/bin" >> $@
- echo " cp -rf Library/*.h \$$pkgdir/usr/include/" >> $@
- echo " cp -rf Library/*.a \$$pkgdir/usr/lib/" >> $@
- echo " cp -rf Library/*.so \$$pkgdir/usr/lib/" >> $@
- echo " cp -rf Server/dataworks_server \$$pkgdir/usr/bin/" >> $@
- echo " cp -rf Client/dataworks \$$pkgdir/usr/bin/" >> $@
- echo " ln -sf dataworks_server \$$pkgdir/usr/bin/dwserv" >> $@
- echo " ln -sf dataworks \$$pkgdir/usr/bin/dw" >> $@
- echo "}" >> $@
- expr `cat ./Package/increment-PKGBUILD` + 1 > ./Package/increment-PKGBUILD
+include Makefiles/pkgbuild.mk
+include Makefiles/deb.mk
--- /dev/null
+# $Id$
+
+.PHONY: ./Package/PKGBUILD
+
+./Package/PKGBUILD:
+ echo "# \$$Id\$$" > $@
+ echo >> $@
+ echo "pkgname='dataworks'" >> $@
+ echo "pkgver='"$(VERSION)"'" >> $@
+ echo "pkgdesc='Database System'" >> $@
+ echo "arch=('i686' 'x86_64')" >> $@
+ echo "license=('BSD')" >> $@
+ echo "pkgrel='`cat ./Package/increment-PKGBUILD`'" >> $@
+ echo "makedepends=('byacc')" >> $@
+ echo "source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision="`svn info -r HEAD | grep "Revision" | grep -Eo "[0-9]+" | xargs expr 1 +`"')" >> $@
+ echo "sha256sums=('SKIP')" >> $@
+ echo >> $@
+ echo "build() {" >> $@
+ echo " cd dataworks" >> $@
+ echo " make clean" >> $@
+ echo " make no-doc YACC=byacc" >> $@
+ echo "}" >> $@
+ echo >> $@
+ echo "package() {" >> $@
+ echo " cd dataworks" >> $@
+ echo " mkdir -p \$$pkgdir/usr/include" >> $@
+ echo " mkdir -p \$$pkgdir/usr/lib" >> $@
+ echo " mkdir -p \$$pkgdir/usr/bin" >> $@
+ echo " cp -rf Library/*.h \$$pkgdir/usr/include/" >> $@
+ echo " cp -rf Library/*.a \$$pkgdir/usr/lib/" >> $@
+ echo " cp -rf Library/*.so \$$pkgdir/usr/lib/" >> $@
+ echo " cp -rf Server/dataworks_server \$$pkgdir/usr/bin/" >> $@
+ echo " cp -rf Client/dataworks \$$pkgdir/usr/bin/" >> $@
+ echo " ln -sf dataworks_server \$$pkgdir/usr/bin/dwserv" >> $@
+ echo " ln -sf dataworks \$$pkgdir/usr/bin/dw" >> $@
+ echo "}" >> $@
+ expr `cat ./Package/increment-PKGBUILD` + 1 > ./Package/increment-PKGBUILD