File: Makefile

package info (click to toggle)
lintex 1.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 268 kB
  • sloc: ansic: 593; cpp: 431; makefile: 35; sh: 12
file content (26 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: Makefile,v 1.3 2001/12/02 11:00:05 loreti Exp $

PKG_CONFIG ?= pkg-config
CFLAGS += -ansi -pedantic -Wall `$(PKG_CONFIG) --cflags libconfig`
#CFLAGS = -ansi -Wall -g `$(PKG_CONFIG) --cflags libconfig`
LIBS += `$(PKG_CONFIG) --libs libconfig`

ROOT = debian/lintex/usr

.PHONY: install clean

lintex:	lintex.c Makefile
	$(CC) $(CXXFLAGS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ lintex.c $(LIBS)

install: lintex
	strip lintex
	mv lintex   $(ROOT)/bin
	# Handle this in packaging
	#cp lintex.1 $(ROOT)/man/man1

lintex.pdf: lintex.1
	groff -man -Tps $< | ps2pdf - $@

clean:
	-rm *~ *.o core
	-rm lintex lintex.pdf