49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
configure: configure-stamp
|
|
configure-stamp:
|
|
dh_testdir
|
|
touch configure-stamp
|
|
build: build-arch build-indep
|
|
build-arch: build-stamp
|
|
build-indep: build-stamp
|
|
build-stamp: configure-stamp
|
|
dh_testdir
|
|
touch $@
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-stamp configure-stamp
|
|
dh_clean
|
|
install: build
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_prep
|
|
dh_installdirs
|
|
mkdir -p debian/ogclient/opt/opengnsys/ogclient_log debian/ogclient/etc/samba
|
|
cp -a client debian/ogclient/opt/opengnsys/ogclient
|
|
mkdir -p debian/ogclient/opt/opengnsys/ogclient/images debian/ogclient/opt/opengnsys/ogclient/cache debian/ogclient/opt/opengnsys/ogclient/log
|
|
install --owner root --group root --mode 0644 etc/samba/smb-client.conf debian/ogclient/etc/samba/
|
|
find debian/ogclient -name '*.swp' -exec rm -f '{}' ';'
|
|
binary-arch: build install
|
|
# emptyness
|
|
binary-indep: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installchangelogs
|
|
dh_installdocs
|
|
dh_installdebconf
|
|
dh_installinit --no-start
|
|
dh_python3=python
|
|
dh_compress
|
|
dh_link
|
|
dh_fixperms
|
|
dh_installdeb
|
|
## ignore Qt*.so.4 errors
|
|
dh_shlibdeps --exclude debian/ogclient/opt/opengnsys/ogclient/bin/browser --exclude debian/ogclient/opt/opengnsys/ogclient/bin/grub-probe1.99_i686
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
binary: binary-indep
|
|
.PHONY: build clean binary-indep binary install configure
|