File: rules

package info (click to toggle)
vrweb 1.5-5.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 15,124 kB
  • ctags: 27,485
  • sloc: cpp: 134,333; ansic: 95,670; sh: 1,072; asm: 712; makefile: 610; pascal: 536; perl: 347; csh: 26
file content (142 lines) | stat: -rwxr-xr-x 3,480 bytes parent folder | download
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/usr/bin/make -f
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited pe$(RM)ission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
#
# Modified to be a prototype for debmake by Christoph Lameter <clameter@debian.org>

package=vrweb

source_file = vrweb-src-1.5.tar.gz
tar_files = \
VRMLsamples.tar.gz \
fonts.tar.gz \
help-1.5.tar.gz 
gzip_files = \
FAQ-Unix.html.gz \
example.wrl.gz 

ROOTDIR := $(shell pwd)
DESTDIR := $(ROOTDIR)/debian/tmp
CPU=LINUX_ELF
RM=rm

build: build-stamp
build-stamp:
	dh_testdir

	rm -f src/harmony/widgets/zlib
	ln -s zlib-1.1.3 src/harmony/widgets/zlib
	./makeall -r
	./makeall -m
	./makeall -i
	@touch build-stamp
	@echo "Build done."

clean:	
	dh_testdir
	dh_testroot
	@echo "Cleanup compilation files"
	@-rm -f build-stamp
	@-rm -rf $(ROOTDIR)/installed
	@-rm -rf `find $(ROOTDIR)/ -type d -name LINUX_ELF`
	@-rm -f `find . -name \*.o`
	@-rm -f `find . -name Makefile`
	@-rm -f `find . -name \*.a`
	@-rm -f `find . -name \*.bak`
	@-rm -f `find . -name \*~`
	dh_clean
	@echo "Cleanup done."

binary-indep:	build
# Altough I don't make a separate binary independant file. I put it
# here in case I change my mind.

binary-arch:	build
	dh_testdir
	dh_testroot
	dh_testversion
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	@echo "Installing VRweb executables"
	@install -m 755 installed/harmony/bin/$(CPU)/vrweb-mesa \
		$(DESTDIR)/usr/X11R6/bin/vrweb
	@echo "Installing VRweb options file"
	@install -m 644 $(ROOTDIR)/src/harmony/scene/SceneViewer.ad \
		$(DESTDIR)/usr/X11R6/lib/X11/app-defaults/Harmony
	@echo "Installing VRweb fonts"
	@install -m 644 $(ROOTDIR)/fonts/*.wrl \
		$(DESTDIR)/usr/share/vrweb/fonts
	@echo "Installing VRweb icons"
	@install -m 644 $(ROOTDIR)/icons/* \
		$(DESTDIR)/usr/share/vrweb/icons

	dh_installmime
	dh_installdocs
	dh_installexamples
	dh_undocumented vrweb.1x
	dh_installmenu
	dh_installchangelogs src/harmony/scene/ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

get-orig-source: orig-dir

orig-dir: untar-src
	@echo "Make orig directory..."
	@-rm -rf vrweb-1.5.orig
	@cp -a vrweb-1.5 vrweb-1.5.orig
	@echo "Cleaning up..."
	@-cd vrweb-1.5.orig ; \
		rm -f build-stamp ; \
		rm -rf $(ROOTDIR)/installed ; \
		rm -rf `find $(ROOTDIR)/ -type d -name LINUX_ELF` ; \
		rm -f `find . -name "Makefile"` ; \
		rm -f `find . -name "*~"` ; \
		rm -f `find . -name "*.o"` ; \
		rm -f `find . -name "*.a"` ; \
		dh_clean
	@rm -rf vrweb-1.5.orig/debian
	@echo "done."

untar-src: $(source_file) $(gzip_files) $(tar_files)
	@echo "Cleaning up directory"
	@-rm -rf `find vrweb-1.5/ -maxdepth 1 -! -name debian`
	@echo "Unpacking source archives..."
	@tar -xzf $(source_file) 
	@for tarball in $(tar_files) ; do \
		tar -xzf $$tarball -C $(ROOTDIR)/vrweb-1.5 ; \
	done
	@for zipfile in $(gzip_files) ; do \
		cp -f $$zipfile $(ROOTDIR)/vrweb-1.5 ; \
	done
	@cd $(ROOTDIR)/vrweb-1.5 && gzip -d $(gzip_files)
	@chmod -R u+w vrweb-1.5 


# Below here is fairly generic really

binary:		binary-indep binary-arch

.PHONY: binary binary-indep binary-arch clean get-orig-source \
	untar-src orig-dir

# Local Emacs variables
### Local variables:
### mode: makefile
### End: