Initial import
This commit is contained in:
47
debian/rules
vendored
Executable file
47
debian/rules
vendored
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||
|
||||
build: build-arch build-indep
|
||||
build-arch:
|
||||
build-indep:
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
ifeq ($(DEB_BUILD_ARCH),amd64)
|
||||
rsync -avr $(CURDIR)/amd64/NX $(CURDIR)/debian/nxclient/usr/
|
||||
endif
|
||||
ifeq ($(DEB_BUILD_ARCH),i386)
|
||||
rsync -avr $(CURDIR)/i386/NX $(CURDIR)/debian/nxclient/usr/
|
||||
endif
|
||||
$(CC) -shared -ldl -fPIC $(CURDIR)/glibc/nxfixglibc1190/libfix1190.c -o $(CURDIR)/debian/nxclient/usr/NX/lib/libfix1190.so
|
||||
mv $(CURDIR)/debian/nxclient/usr/NX/bin/nxclient $(CURDIR)/debian/nxclient/usr/NX/bin/nxclient.bin
|
||||
install $(CURDIR)/debian/nxclient.wrapper $(CURDIR)/debian/nxclient/usr/NX/bin/nxclient
|
||||
|
||||
binary-indep:
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
||||
Reference in New Issue
Block a user