forked from pixel/hexedit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-build.in
57 lines (45 loc) · 1.17 KB
/
Makefile-build.in
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
# Makefile-build for hexedit
PRODUCT = @PRODUCT@
VERSION = @VERSION@
prefix = @prefix@
datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
mandir = @mandir@/man1
bindir = @bindir@
srcdir = @srcdir@
INCL = @INCL@
SRCS = @SRCS@
OTHER = @OTHER@
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.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
tar: $(ALL)
cd .. ; tar cfz $(PRODUCT)/$(TARSOURCE) $(ALL:%=$(PRODUCT)/%)
docs:
man2html $(PRODUCT).1
hexedit.1: hexedit.1.in
m4 -DVERSION=$(VERSION) $< > $@
html-site: tar dynamic docs
tar cf $(HTMLSITE) $(TMPFILES)
clean:
[ ! -e Makefile ] || $(MAKE) clean
rm -f $(TMPFILES) $(HTMLSITE) TAGS $(FROMINFILES)
distclean: clean
[ ! -e Makefile ] || $(MAKE) distclean
rm -f Makefile-build configure config.h.in
ci: clean
ci -l -mdefault *
TAGS:
etags *.[hc]