File: Makefile

package info (click to toggle)
ipv6calc 4.1.0-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,676 kB
  • sloc: ansic: 101,567; sh: 6,796; perl: 3,867; xml: 1,475; makefile: 909
file content (63 lines) | stat: -rw-r--r-- 1,553 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Project    : ipv6calc/databases/registries
# File       : Makefile
# Version    : $Id: 271256d9f8d47c0bdd2a47c3a4a7c8c3917f8fb7 $
# Copyright  : 2002-2022 by Peter Bieringer <pb (at) bieringer.de>
#               replaces parts of ../ipv4-assignment/Makefile
#               replaces parts of ../ipv6-assignment/Makefile
#
# Information:
#  Makefile for updating assignment data of registries

all:
		${MAKE} update

install:
		echo "Nothing to do"

download:
		echo "Download new version of files"
		../../tools/ipv6calc-update-registries.sh

update-only:
		echo "Create database files for IPv4"
		cd ../ipv4-assignment && ${MAKE} update

		echo "Create database files for IPv6"
		cd ../ipv6-assignment && ${MAKE} update

		echo "Create database files for ASN to Registry"
		cd ../as-assignment && ${MAKE} update

		echo "Create database files for CountryCode to Registry"
		cd ../cc-assignment && ${MAKE} update

update:
		${MAKE} download

		${MAKE} update-only

distclean:
		echo "Delete data files"
		if [ -d iana ]; then \
			echo "Delete datafiles: iana"; \
			rm -f iana/ipv6-unicast-address-assignments.xml iana/ipv4-address-space.xml iana/as-numbers.txt; \
			rmdir iana; \
		fi
		if [ -d lisp ]; then \
			echo "Delete datafiles: lisp"; \
			rm -f lisp/site-db; \
			rmdir lisp; \
		fi
		for d in ripencc apnic arin lacnic afrinic; do \
			if [ -d $${d} ]; then \
				echo "Delete datafiles: $${d}"; \
				rm -f $${d}/delegated-$${d}-*; \
				rmdir $${d}; \
			fi; \
		done

autoclean:
		echo "Nothing to do"

clean:
		echo "Nothing to do"