File: Makefile

package info (click to toggle)
nullidentd 1.0-5
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 132 kB
  • ctags: 23
  • sloc: ansic: 214; makefile: 43; sh: 26
file content (34 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (4)
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

# Edited for Debian GNU/Linux.
DESTDIR=

INSTALL=$(DESTDIR)/usr/sbin


nullidentd: nullidentd.c version.h
	gcc -O2 -o nullidentd nullidentd.c

dist: .version
	mkdir nullidentd-`cat .version`
	cp -P `p4 files ... | sed s/\\\\/\\\\/depot\\\\/home\\\\/nullidentd\\\\/// | sed s/#.*$$//` nullidentd-`cat .version`/
	find nullidentd-`cat .version` -type f -exec chmod 664 {} \;
	tar zcf nullidentd-`cat .version`.tar.gz nullidentd-`cat .version`/
	rm -rf nullidentd-`cat .version`

.version: README
	egrep "^Version" README | sed 's/Version //' > .version

version.h: .version
	echo "const char VERSION[] = \"`cat .version`\";" > version.h

clean: 
	rm -f .version version.h nullidentd

install: nullidentd
	#rm -f $(INSTALL)/nullidentd
	cp nullidentd $(INSTALL)/nullidentd
	chown root.root $(INSTALL)/nullidentd
	#chmod a-rw $(INSTALL)/nullidentd
	#chmod a+x $(INSTALL)/nullidentd
	chmod 0755 $(INSTALL)/nullidentd