File: local.mk

package info (click to toggle)
tome 2.3.5-2
  • links: PTS, VCS
  • area: non-free
  • in suites: lenny, squeeze, wheezy
  • size: 15,844 kB
  • ctags: 13,854
  • sloc: ansic: 174,540; sh: 240; makefile: 11
file content (109 lines) | stat: -rw-r--r-- 4,494 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
############################ -*- Mode: Makefile -*- ###########################
## local.mk --- 
## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
## Created On       : Sat Nov 15 10:42:10 2003
## Created On Node  : glaurung.green-gryphon.com
## Last Modified By : Manoj Srivastava
## Last Modified On : Fri Feb  8 00:51:41 2008
## Last Machine Used: anzu.internal.golden-gryphon.com
## Update Count     : 22
## Status           : Unknown, Use with caution!
## HISTORY          : 
## Description      : 
## 
## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4
## 
###############################################################################

testdir:
	$(testdir)

BUILD/tome:: build/tome
INST/tome:: install/tome
BIN/tome:: binary/tome

build/tome:
	$(checkdir)
	bash -n debian/postinst
	bash -n debian/postrm
	bash -n debian/prerm
	bash -n debian/preinst
	bash -n debian/Tome.sh
	$(MAKE) -C src -f makefile.std
	dpkg -l gcc 'libc*' binutils ldso make dpkg-dev | \
          awk '$$1 == "ii" { printf("%s-%s\n", $$2, $$3) }' > \
           debian/buildinfo

install/tome:
	rm -rf               $(TMPTOP) $(TMPTOP).deb
	rm -f                $(PKG_INFO)/$(package).info*.gz
	$(make_directory)    $(TMPTOP)
	$(make_directory)    $(TMPTOP)/DEBIAN
	$(make_directory)    $(TMPTOP)/etc/$(package)
	$(make_directory)    $(TMPTOP)/usr/games
	$(make_directory)    $(PKG_MAN)
	$(make_directory)    $(PKG_DOC)
	$(make_directory)    $(PKG_LIBDIR)
	$(make_directory)    $(PKG_STATLIB)
	$(make_directory)    $(PKG_MENUDIR)
	$(make_directory)    $(LINTIANDIR)
	echo "$(package): description-synopsis-might-not-be-phrased-properly" \
                             >> $(LINTIANDIR)/$(package)
	$(MAKE) -C src -f makefile.std DESTDIR=$(TMPTOP) \
                             $(INT_INSTALL_TARGET)  install
	$(install_file)      debian/conffiles     $(TMPTOP)/DEBIAN/conffiles
	$(install_file)      debian/changelog     $(PKG_DOC)/changelog.Debian
	$(install_file)      debian/README.debian $(PKG_DOC)/
	$(install_file)      debian/NEWS.Debian   $(PKG_DOC)/
	$(install_file)      debian/Xresources    $(PKG_DOC)/
	$(install_file)      debian/buildinfo     $(PKG_DOC)/buildinfo.Debian
	$(install_file)      src/$(package).man      $(PKG_MAN)/$(package).6
	chmod 0644           $(PKG_LIBDIR)/edit/s_factory.map
	chmod 0644           $(PKG_LIBDIR)/edit/s_ship.map
	gzip -9fqr           $(PKG_DOC)
	gzip -9fqr           $(PKG_MAN)
	find $(PKG_LIBDIR) -type f -name .cvsignore -print0 | xargs -0r rm  -f {}
	find $(PKG_LIBDIR) -type d -name .arch-ids  -print0 | xargs -0r rm -rf {}
	(cd $(PKG_LIBDIR);   mv edit file pref $(TMPTOP)/etc/$(package);   \
                             ln -s /etc/$(package)/edit . ;                 \
                             ln -s /etc/$(package)/file . ;                 \
                             ln -s /etc/$(package)/pref . ;     )
	(cd $(PKG_LIBDIR);   mv help $(PKG_STATLIB);    \
                             ln -s /usr/lib/$(package)/help   . ;   )
	for i in save/delete.me ; do \
            chmod 0644 $(PKG_LIBDIR)/$$i;            \
        done
	rm -f                   $(PKG_LIBDIR)/apex/scores.raw
	chmod g+ws              $(PKG_LIBDIR)/data/
# Make sure the copyright file is not compressed
	$(install_file)         debian/copyright     $(PKG_DOC)/
	$(install_file)         debian/menuentry     $(PKG_MENUDIR)/$(package)
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	strip $(STRIP)          --remove-section=.comment  \
                                 --remove-section=.note \
                                $(TMPTOP)/usr/games/$(package)
endif

binary/tome:
	$(install_program)      debian/preinst \
                                $(TMPTOP)/DEBIAN/preinst
	$(install_program)      debian/postinst \
                                $(TMPTOP)/DEBIAN/postinst
	$(install_program)      debian/prerm \
                                $(TMPTOP)/DEBIAN/prerm
	$(install_program)      debian/postrm \
                                $(TMPTOP)/DEBIAN/postrm
	dpkg-shlibdeps          $(TMPTOP)/usr/games/$(package)
	dpkg-gencontrol         -isp
	$(create_md5sum)        $(TMPTOP)
	chown -R root:root      $(TMPTOP)/DEBIAN $(TMPTOP)/usr/share/doc
	chmod -R go=rX          $(TMPTOP)/DEBIAN $(TMPTOP)/usr/share/doc
	dpkg --build            $(TMPTOP) ..

clean:
	$(MAKE) -C src -f makefile.std clean
	touch ./lib/apex/delete.me
	touch ./lib/data/delete.me
	touch ./lib/info/delete.me
	touch ./lib/save/delete.me
	touch ./lib/user/delete.me