File: Makefile

package info (click to toggle)
rsstail 1.4-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 72 kB
  • ctags: 12
  • sloc: ansic: 418; makefile: 60
file content (29 lines) | stat: -rw-r--r-- 627 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
27
28
29
VERSION=1.4

DEBUG=-g
LDFLAGS=-lmrss $(DEBUG)
CFLAGS=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG)

OBJS=r2t.o

all: rsstail

rsstail: $(OBJS)
	$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o rsstail
	#
	# Oh, blatant plug: http://keetweej.vanheusden.com/wishlist.html

install: rsstail
	cp rsstail $(DESTDIR)/usr/bin
	cp rsstail.1 $(DESTDIR)/usr/share/man/man1/

clean:
	rm -f $(OBJS) core rsstail

package: clean
	# source package
	rm -rf rsstail-$(VERSION)*
	mkdir rsstail-$(VERSION)
	cp *.c *.1 Makefile* readme.txt license.* rsstail-$(VERSION)
	tar cf - rsstail-$(VERSION) | gzip -9 > rsstail-$(VERSION).tgz
	rm -rf rsstail-$(VERSION)