File: Makefile

package info (click to toggle)
letterize 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 116 kB
  • ctags: 18
  • sloc: ansic: 187; makefile: 83; xml: 55
file content (42 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Makefille for the phone-number letterizer
#
VERS=1.4

all: letterize

letterize: letterize.c
	gcc -o letterize $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) letterize.c

SOURCES = README COPYING NEWS letterize.xml Makefile letterize.c

letterize.1: letterize.xml
	xmlto man letterize.xml

letterize.html: letterize.xml
	xmlto html-nochunks letterize.xml

letterize-$(VERS).tar.gz: $(SOURCES) letterize.1
	@ls $(SOURCES) letterize.1 | sed s:^:letterize-$(VERS)/: >MANIFEST
	@(cd ..; ln -s letterize letterize-$(VERS))
	(cd ..; tar -czf letterize/letterize-$(VERS).tar.gz `cat letterize/MANIFEST`)
	@(cd ..; rm letterize-$(VERS))

clean:
	rm -f letterize letterize.tar letterize*.gz letterize*.rpm
	rm -f *~ *.1 *.html MANIFEST

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

uninstall:
	rm -f $(DESTDIR)/usr/bin/letterize $(DESTDIR)/usr/share/man/man1/letterize.1

dist: letterize-$(VERS).tar.gz

release: letterize-$(VERS).tar.gz letterize.html
	shipper version=$(VERS) | sh -e -x

refresh: letterize.html
	shipper -N -w version=$(VERS) | sh -e -x