File: Makefile

package info (click to toggle)
hnb 1.9.18%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,680 kB
  • sloc: ansic: 8,117; makefile: 114
file content (34 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (9)
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

src/hnb: src/*.c src/*.h src/*.inc src/hnbrc.inc
	(cd src;make)
install: src/hnb
	install -D src/hnb /usr/local/bin/hnb
	install -D -m444 doc/hnb.1 /usr/local/man/man1/hnb.1
clean:
	(cd src;make clean)
	(cd util;make clean)
	rm -f *~

rcupdate: updaterc
updaterc: src/hnbrc.inc

src/hnbrc.inc: doc/hnbrc
	(cd util;make)
	echo -n "\"">src/hnbrc.inc
	cat doc/hnbrc | util/asc2c >> src/hnbrc.inc
	echo "\"">>src/hnbrc.inc

tar: updaterc clean hnb.spec config.h
	mkdir hnb-`cat VERSION`
	cp -r * hnb-`cat VERSION`; tar cvzf ../hnb-`cat VERSION`.tar.gz hnb-`cat VERSION`
	rm -rf hnb-`cat VERSION`

config.h: VERSION
	cp config.h config.h.tmp
	cat config.h.tmp | sed 's/VERSION .*/VERSION "'"`cat VERSION`"'"/' > config.h
	rm config.h.tmp

hnb.spec: VERSION
	mv hnb.spec hnb.spec.tmp
	cat hnb.spec.tmp | sed "s/Version:.*/Version: `cat VERSION`/" > hnb.spec
	rm hnb.spec.tmp