~ubuntu-branches/ubuntu/lucid/zmakebas/lucid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Krystian Wlosek
  • Date: 2006-07-06 10:43:41 UTC
  • Revision ID: james.westby@ubuntu.com-20060706104341-vtwbxvppa2g9ksx2
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# makefile for zmakebas
 
2
 
 
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. :-))
 
6
#
 
7
CC=gcc
 
8
CFLAGS=-O -Wall -DHAVE_GETOPT
 
9
 
 
10
# these set where the executable and man page are installed
 
11
PREFIX=/usr/local
 
12
 
 
13
BINDIR=$(PREFIX)/bin
 
14
MANDIR=$(PREFIX)/man/man1
 
15
 
 
16
 
 
17
all: zmakebas
 
18
 
 
19
zmakebas: zmakebas.o
 
20
        $(CC) $(CFLAGS) -o zmakebas zmakebas.o
 
21
 
 
22
installdirs:
 
23
        /bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)
 
24
 
 
25
install: zmakebas installdirs
 
26
        install -m 511 zmakebas $(BINDIR)
 
27
        install -m 444 zmakebas.1 $(MANDIR)
 
28
 
 
29
uninstall:
 
30
        $(RM) $(BINDIR)/zmakebas
 
31
        $(RM) $(MANDIR)/zmakebas.1*
 
32
 
 
33
clean:
 
34
        $(RM) *~ *.o zmakebas
 
35
 
 
36
 
 
37
# The stuff below makes the distribution tgz.
 
38
 
 
39
VERS=1.1
 
40
 
 
41
dist: tgz
 
42
tgz: ../zmakebas-$(VERS).tar.gz
 
43
  
 
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)