File: Makefile-build

package info (click to toggle)
hexedit 1.0.0-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 232 kB
  • ctags: 194
  • sloc: ansic: 1,406; sh: 152; makefile: 68
file content (60 lines) | stat: -rw-r--r-- 1,447 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
# Generated automatically from Makefile-build.in by configure.
# Makefile-build for hexedit

PRODUCT = hexedit
VERSION = 1.0.0

prefix = debian/tmp/usr
exec_prefix = ${prefix}
mandir = ${prefix}/man/man1
bindir = ${exec_prefix}/bin
srcdir = .

INCL = hexedit.h
SRCS = hexedit.c display.c mark.c page.c file.c interact.c misc.c search.c
OTHER = COPYING Changes TODO install-sh configure hexedit.1 hexedit-1.0.0.lsm Makefile.in configure.in Makefile-build.in
ALL = $(INCL) $(SRCS) $(OTHER)
TARSOURCE = $(PRODUCT)-$(VERSION).src.tgz
DYNAMICBIN = $(PRODUCT)-$(VERSION).bin.i386.dynamic.tgz
HTMLSITE = $(PRODUCT)-html-site.tar
HTMLFILES = $(PRODUCT).html
TMPFILES = $(DYNAMICBIN) $(TARSOURCE) $(HTMLFILES)
FROMINFILES = hexedit-$(VERSION).lsm hexedit.1

dynamic:
	$(MAKE) $(PRODUCT)
	install -d -m 755 usr/bin
	install -s -m 755 $(PRODUCT) usr/bin
	install -d -m 755 usr/man/man1
	install -m 644 $(PRODUCT).1 usr/man/man1
	tar cfz $(DYNAMICBIN) usr
	rm -rf usr

tgz: $(ALL)
	cd .. ; tar cfz $(PRODUCT)/$(TARSOURCE) $(ALL:%=$(PRODUCT)/%)

docs:
	man2html $(PRODUCT).1

hexedit-$(VERSION).lsm: hexedit.lsm.in
	m4 -DVERSION=$(VERSION) $< > $@

hexedit.1: hexedit.1.in
	m4 -DVERSION=$(VERSION) $< > $@

html-site: tgz dynamic docs
	tar cf $(HTMLSITE) $(TMPFILES)

clean:
	$(MAKE) clean
	rm -f $(TMPFILES) $(HTMLSITE) TAGS config.* $(FROMINFILES)

distclean: clean
	$(MAKE) distclean
	rm -f Makefile-build

ci: clean
	ci -l -mdefault *

TAGS:
	etags *.[hc]