head	1.7;
access;
symbols
	1-1:1.6;
locks; strict;
comment	@# @;


1.7
date	99.09.14.02.17.13;	author esr;	state Exp;
branches;
next	1.6;

1.6
date	98.06.29.21.00.46;	author esr;	state Exp;
branches;
next	1.5;

1.5
date	98.06.29.19.58.42;	author esr;	state Exp;
branches;
next	1.4;

1.4
date	95.12.07.20.37.57;	author esr;	state Exp;
branches;
next	1.3;

1.3
date	95.05.07.06.12.24;	author esr;	state Exp;
branches;
next	1.2;

1.2
date	94.10.24.21.43.08;	author esr;	state Exp;
branches;
next	1.1;

1.1
date	94.10.24.21.07.14;	author esr;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Version 1.2
@
text
@# Makefile for Eric Raymond's silly hex dumper

# Note: When the version changes, you also have to change the RPM spec file
VERS=1.2

hex: hex.c
	$(CC) -DVERSION=\"$(VERS)\" -O hex.c -o hex

SOURCES = READ.ME Makefile hex.c hex.1 hex.lsm hex.spec

hex-$(VERS).tar.gz:
	@@ls $(SRC) | sed s:^:hex-$(VERS)/: >MANIFEST
	@@(cd ..; ln -s hex hex-$(VERS))
	(cd ..; tar -czvf hex/hex-$(VERS).tar.gz `cat hex/MANIFEST`)
	@@(cd ..; rm hex-$(VERS))

clean:
	rm -f hex hex-$(VERS).tar.gz *.rpm

dist: hex-$(VERS).tar.gz

RPMROOT=/usr/src/redhat
RPM = rpm
RPMFLAGS = -ba
rpm: dist
	cp hex-$(VERS).tar.gz $(RPMROOT)/SOURCES;
	cp hex.spec $(RPMROOT)/SPECS
	cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) hex.spec	
	cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/hex-$(VERS)*.rpm .
	cp $(RPMROOT)/SRPMS/hex-$(VERS)*.src.rpm .
@


1.6
log
@*** empty log message ***
@
text
@d3 2
a4 4
# Note: When the version changes, you also have to change
#  * the name of the containing directory
#  * the RPM spec file
VERS=1.1
d7 1
d11 5
a15 4
hex-$(VERS).tar: $(SOURCES)
	tar --name-prefix "hex-$(VERS)/" -cvf hex-$(VERS).tar $(SOURCES)
hex-$(VERS).tar.gz: hex-$(VERS).tar
	gzip -f hex-$(VERS).tar
d17 2
a18 2
hex.shar: $(SOURCES)
	shar $(SOURCES) >hex.shar
d20 1
a20 2
clean:
	rm -f hex hex.tar hex.shar
d25 6
a30 4
rpm: hex-$(VERS).tar.gz
	cp hex-$(VERS).tar.gz $(RPMROOT)/SOURCES/hex-$(VERS).tar.gz
	cp hex.spec $(RPMROOT)/SPECS/hex.spec
	$(RPM) $(RPMFLAGS) hex.spec
@


1.5
log
@1.1.
@
text
@d23 7
a29 5
TOPDIR=/usr/src/rpm
rpm: hex.tar.gz
	cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(VERS).tar.gz
	cp hex.spec $(TOPDIR)/SPECS/hex-$(VERS)-1.spec
	rpm -ba hex-$(VERS)-1.spec
@


1.4
log
@Ready to go.
@
text
@d6 1
a6 1
V=1.0
d12 4
a15 4
hex.tar: $(SOURCES)
	(cd ..; tar -cvf hex-$(V)/hex.tar `echo $(SOURCES) | sed "/\(^\| \)/s// hex-$(V)\//g"`)
hex.tar.gz: hex.tar
	gzip -f hex.tar
d25 3
a27 3
	cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(V).tar.gz
	cp hex.spec $(TOPDIR)/SPECS/hex-$(V)-1.spec
	rpm -ba hex-$(V)-1.spec
@


1.3
log
@Added hex.lsm.
@
text
@d3 5
d10 4
a13 2
hex.tar: READ.ME hex.c hex.1
	tar -cvf hex.tar READ.ME Makefile hex.c hex.1 hex.lsm
d15 1
a15 1
	gzip hex.tar
d17 2
a18 2
hex.shar: READ.ME hex.c hex.1
	shar READ.ME hex.c hex.1 hex.lsm >hex.shar
d22 6
@


1.2
log
@These are ready for export
@
text
@d6 1
a6 1
	tar -cvf hex.tar READ.ME Makefile hex.c hex.1
d11 1
a11 1
	shar READ.ME hex.c hex.1 >hex.shar
@


1.1
log
@Initial revision
@
text
@d7 5
d14 1
a14 1
	rm -f hex hex.tar
@
