File: Makefile

package info (click to toggle)
radioclk 1.0.pristine-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 352 kB
  • sloc: ansic: 2,224; sh: 108; makefile: 81
file content (44 lines) | stat: -rw-r--r-- 968 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Makefile -- makefile for DCF77/MSF/WWVB time signal decoding
#
#

VERSION=1.0

CC = /usr/bin/gcc
INSTALL = /usr/bin/install
DESTDIR = /usr/local
MANDESTDIR = /usr/local/
CFLAGS += -Wall
INSTALL-BIN = $(INSTALL)

all: radioclkd

radioclkd: radioclkd.o

install: install-bin install-man

install-bin:
	$(INSTALL-BIN) -m 0755 radioclkd $(DESTDIR)/sbin

install-man:
	$(INSTALL) -m 0644 radioclkd.1 $(DESTDIR)/man/man1

clean:
	rm -f *.o *.bak core radioclkd

dist: clean
	(rm -f ChangeLog; \
	rcs2log -R > ChangeLog; \
	rm -rf /tmp/radioclk-$(VERSION); \
	mkdir /tmp/radioclk-$(VERSION); \
	cp * /tmp/radioclk-$(VERSION); \
	cp -a ./debian/ /tmp/radioclk-$(VERSION); \
	cd /tmp/radioclk-$(VERSION); \
	find -type d | xargs chmod 755; \
	find -type f | xargs chmod 644; \
	find -type d | xargs chown root:root; \
	find -type f | xargs chown root:root; \
	cd ..; \
	tar cvf radioclk-$(VERSION).tar radioclk-$(VERSION); \
	gzip -9f radioclk-$(VERSION).tar; \
	echo Done.)