File: rules

package info (click to toggle)
xblast-tnt-models 20050106-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 8,880 kB
  • ctags: 9
  • sloc: makefile: 43
file content (65 lines) | stat: -rwxr-xr-x 1,465 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
#!/usr/bin/make -f
# debian/rules for xblast-tnt-models
PKG = xblast-tnt-models
TMP = $(CURDIR)/debian/$(PKG)

INSTALL = install
INSTALL_FILE    = $(INSTALL) -p    -oroot -groot -m644
INSTALL_PROGRAM = $(INSTALL) -p    -oroot -groot -m755
INSTALL_SCRIPT  = $(INSTALL) -p    -oroot -groot -m755
INSTALL_DIR     = $(INSTALL) -p -d -oroot -groot -m755


clean:
	$(checkdir)
	$(checkroot)
	-rm -rf $(TMP) debian/files install-stamp


build:
	# nothing to build


install: install-stamp
install-stamp:
	$(checkdir)
	$(checkroot)
	-rm -rf $(TMP)
	$(INSTALL_DIR) $(TMP)/usr/share
	cd $(TMP)/usr/share && $(INSTALL_DIR) doc/$(PKG) \
		games/xblast-tnt/image/sprite
	$(INSTALL_FILE) *.ppm *.pbm *.epm \
		$(TMP)/usr/share/games/xblast-tnt/image/sprite
	touch install-stamp


# Build architecture-independent files here.
binary-indep: install
	$(checkdir)
	$(checkroot)
	$(INSTALL_DIR) $(TMP)/DEBIAN $(TMP)/usr/share/doc/$(PKG)
	$(INSTALL_FILE) debian/changelog \
		$(TMP)/usr/share/doc/$(PKG)/changelog.Debian
	$(INSTALL_FILE) debian/copyright \
		$(TMP)/usr/share/doc/$(PKG)
	gzip -9 $(TMP)/usr/share/doc/$(PKG)/changelog.Debian
	dpkg-gencontrol -isp -p$(PKG) -P$(TMP)
	dpkg --build $(TMP) ..
	

# Build architecture-dependent files here.
binary-arch:
	# We have nothing to do here


binary: binary-indep

define checkdir
        test -f debian/rules
endef

define checkroot
        test root = "`whoami`"
endef

.PHONY: clean build install binary-indep binary-arch binary