Ticket #23589: patch-Makefile.diff

File patch-Makefile.diff, 1.2 KB (added by eyre@…, 15 years ago)

Makefile patch

  • Makefile

    old new  
    11CC=gcc
    22CFLAGS=-Wall `pkg-config --cflags gtk+-2.0`
    33LIBS=`pkg-config --libs gtk+-2.0`
    4 bindir ?= /usr/bin
    5 mandir ?= /usr/share/man
     4#bindir ?= /usr/bin
     5#mandir ?= /usr/share/man
    66
    77.c.o:
    88        $(CC) -c $(CFLAGS) $(CPPFLAGS) $<
    99
    10 g3data: main.o sort.o points.o drawing.o g3data.1.gz
     10all: g3data
     11
     12g3data: main.o sort.o points.o drawing.o #g3data.1.gz
    1113        $(CC) $(CFLAGS) -o g3data main.o sort.o points.o drawing.o $(LIBS)
    1214        strip g3data
    1315
     
    1921
    2022drawing.o: drawing.c main.h
    2123
    22 g3data.1.gz: g3data.sgml
    23         rm -f *.1
    24         onsgmls g3data.sgml | sgmlspl /usr/share/sgml/docbook/utils-0.6.14/helpers/docbook2man-spec.pl
    25         gzip g3data.1
     24#g3data.1.gz: g3data.sgml
     25#       rm -f *.1
     26#       onsgmls g3data.sgml | sgmlspl /usr/share/sgml/docbook/utils-0.6.14/helpers/docbook2man-spec.pl
     27#       gzip g3data.1
    2628
    2729clean:
    2830        rm -f *.o g3data g3data.1.gz *~ manpage.*
    2931
    3032install:
    31         install g3data $(bindir)
    32         install g3data.1.gz $(mandir)/man1
     33        cp g3data $(DESTDIR)/bin/g3data
     34        #install g3data $(bindir)
     35        #install g3data.1.gz $(mandir)/man1
    3336
    3437uninstall:
    35         rm $(bindir)/g3data
     38        rm $(DESTDIR)/bin/g3data