| 1 |
# $Id: Makefile,v 1.3 2001/12/02 11:00:05 loreti Exp $ |
| 2 |
|
| •3 |
PKG_CONFIG ?= pkg-config |
| 4 |
CFLAGS += -ansi -pedantic -Wall `$(PKG_CONFIG) --cflags libconfig` |
| 5 |
#CFLAGS = -ansi -Wall -g `$(PKG_CONFIG) --cflags libconfig` |
| 6 |
LIBS += `$(PKG_CONFIG) --libs libconfig` |
| •7 |
|
| 8 |
ROOT = debian/lintex/usr |
| 9 |
|
| 10 |
.PHONY: install clean |
| 11 |
|
| 12 |
lintex: lintex.c Makefile |
| 13 |
$(CC) $(CXXFLAGS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ lintex.c $(LIBS) |
| 14 |
|
| 15 |
install: lintex |
| 16 |
strip lintex |
| 17 |
mv lintex $(ROOT)/bin |
| •18 |
# Handle this in packaging |
| 19 |
#cp lintex.1 $(ROOT)/man/man1 |
| 20 |
|
| 21 |
lintex.pdf: lintex.1 |
| 22 |
groff -man -Tps $< | ps2pdf - $@ |
| 23 |
|
| 24 |
clean: |
| 25 |
-rm *~ *.o core |
| 26 |
-rm lintex lintex.pdf |