File: rules

package info (click to toggle)
eterm 0.7-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,024 kB
  • ctags: 1,205
  • sloc: ansic: 14,536; sh: 308; makefile: 294
file content (60 lines) | stat: -rwxr-xr-x 1,617 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
#!/usr/bin/make -f
# debian.rules file - for eterm

package = eterm

PWD    := $(shell pwd)
DOCDIR  = debian/tmp/usr/doc/$(package)
PREFIX  = /usr/X11R6
INST_PREFIX = debian/tmp/$(PREFIX)
MAN1DIR = $(INST_PREFIX)/man/man1

CFLAGS = -O2

Makefile:
	./configure --prefix=$(PREFIX)

src/Eterm build: Makefile
	make CFLAGS="$(CFLAGS)"
	strip -s src/Eterm

binary-indep:
	true
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: src/Eterm
	-[ -d debian/tmp ] && rm -rf debian/tmp
	install -d debian/tmp/DEBIAN
	install -d $(DOCDIR)
	install -m 0644 doc/Eterm.menu doc/Eterm.ref doc/FAQ.html doc/colortest.sh doc/menu_cmd $(DOCDIR)
	cp RELNOTES.Eterm $(DOCDIR)/changelog
	cp debian/changelog $(DOCDIR)/changelog.Debian
	install -m 0755 -d $(INST_PREFIX)/bin $(MAN1DIR)
	make install DESTDIR=$(PWD)/debian/tmp themedir=$(PWD)/$(INST_PREFIX)/lib/Eterm/themes
	gzip -9rf $(DOCDIR) $(MAN1DIR) || true
	cp debian/copyright $(DOCDIR)
	chmod -R go=rX $(DOCDIR)
	chmod -R u+w $(DOCDIR)
	install -m 0755 debian/postinst debian/postrm debian/tmp/DEBIAN
	dpkg-shlibdeps $(INST_PREFIX)/bin/Eterm
	dpkg-gencontrol
	chmod 644 debian/tmp/DEBIAN/control
	chown -R root.root debian/tmp
	chmod u+s $(INST_PREFIX)/bin/Eterm
	dpkg --build debian/tmp ..

binary: binary-indep binary-arch

clean:
	-[ -d debian/tmp ] && rm -rf debian/tmp
	-rm -f debian/files debian/substvars *~ debian/*~
	-make distclean

.PHONY: binary binary-arch binary-indep clean

# Local Variables:
# mode:makefile
# vc-master-templates:(("%s../../RCS/%s,v" . RCS))
# End: