Ticket #23589: patch-Makefile.diff
File patch-Makefile.diff, 1.2 KB (added by eyre@…, 15 years ago) |
---|
-
Makefile
old new 1 1 CC=gcc 2 2 CFLAGS=-Wall `pkg-config --cflags gtk+-2.0` 3 3 LIBS=`pkg-config --libs gtk+-2.0` 4 bindir ?= /usr/bin5 mandir ?= /usr/share/man4 #bindir ?= /usr/bin 5 #mandir ?= /usr/share/man 6 6 7 7 .c.o: 8 8 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< 9 9 10 g3data: main.o sort.o points.o drawing.o g3data.1.gz 10 all: g3data 11 12 g3data: main.o sort.o points.o drawing.o #g3data.1.gz 11 13 $(CC) $(CFLAGS) -o g3data main.o sort.o points.o drawing.o $(LIBS) 12 14 strip g3data 13 15 … … 19 21 20 22 drawing.o: drawing.c main.h 21 23 22 g3data.1.gz: g3data.sgml23 rm -f *.124 onsgmls g3data.sgml | sgmlspl /usr/share/sgml/docbook/utils-0.6.14/helpers/docbook2man-spec.pl25 gzip g3data.124 #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 26 28 27 29 clean: 28 30 rm -f *.o g3data g3data.1.gz *~ manpage.* 29 31 30 32 install: 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 33 36 34 37 uninstall: 35 rm $( bindir)/g3data38 rm $(DESTDIR)/bin/g3data