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
|
# Makefile-build for hexedit
PRODUCT = hexedit
VERSION = 1.2.2
prefix = /home/rcw/src/hexedit-1.2.2/debian/tmp/usr
exec_prefix = ${prefix}
mandir = /home/rcw/src/hexedit-1.2.2/debian/tmp/usr/share/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 config.h.in hexedit.1 hexedit-1.2.2.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
tar: $(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: 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]
|