1
# makefile for zmakebas
3
# comment out the `-DHAVE_GETOPT' if, for some reason or other, you
4
# don't have getopt(). (This is mainly so it'll work on MS-DOG, though
5
# I'm not entirely sure why I bothered supporting that. :-))
8
CFLAGS=-O -Wall -DHAVE_GETOPT
10
# these set where the executable and man page are installed
14
MANDIR=$(PREFIX)/man/man1
20
$(CC) $(CFLAGS) -o zmakebas zmakebas.o
23
/bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)
25
install: zmakebas installdirs
26
install -m 511 zmakebas $(BINDIR)
27
install -m 444 zmakebas.1 $(MANDIR)
30
$(RM) $(BINDIR)/zmakebas
31
$(RM) $(MANDIR)/zmakebas.1*
37
# The stuff below makes the distribution tgz.
42
tgz: ../zmakebas-$(VERS).tar.gz
44
../zmakebas-$(VERS).tar.gz: clean
45
$(RM) ../zmakebas-$(VERS)
46
@cd ..;ln -s zmakebas zmakebas-$(VERS)
47
cd ..;tar zchvf zmakebas-$(VERS).tar.gz zmakebas-$(VERS)
48
@cd ..;$(RM) zmakebas-$(VERS)