-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
42 lines (31 loc) · 1002 Bytes
/
Makefile
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
#
# makefile for `deheader'
#
VERS=$(shell sed <deheader -n -e '/version\s*=\s*"\(.*\)"/s//\1/p')
SOURCES = README COPYING NEWS deheader deheader.xml deheader.1 Makefile control deheader-logo.png
all: deheader.1
deheader.1: deheader.xml
xmlto man deheader.xml
deheader.html: deheader.xml
xmlto html-nochunks deheader.xml
clean:
rm -f *~ *.1 *.html test/*.o test/*~ MANIFEST SHIPPER.*
regress:
cd test; make --quiet regress
makeregress:
cd test; make --quiet makeregress
pychecker:
@ln -f deheader deheader.py
@-pychecker --quiet --only --limit 50 deheader.py
@rm -f deheader.py*
version:
@echo $(VERS)
deheader-$(VERS).tar.gz: $(SOURCES)
@ls $(SOURCES) | sed s:^:deheader-$(VERS)/: >MANIFEST
@(cd ..; ln -s deheader deheader-$(VERS))
(cd ..; tar -czf deheader/deheader-$(VERS).tar.gz `cat deheader/MANIFEST`)
@ls -l deheader-$(VERS).tar.gz
@(cd ..; rm deheader-$(VERS))
dist: deheader-$(VERS).tar.gz
release: deheader-$(VERS).tar.gz deheader.html
shipper -u -m -t; make clean