mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
ad0eaa14c6
just like /usr/share/misc/zipcodes.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
--- Makefile.orig Wed Nov 5 14:17:56 1997
|
|
+++ Makefile Wed Nov 5 14:24:42 1997
|
|
@@ -0,0 +1,33 @@
|
|
+.SUFFIXES: .csv .euc-csv
|
|
+
|
|
+CSV= 01hokkai.csv 02aomori.csv 03iwate.csv 04miyagi.csv \
|
|
+ 05akita.csv 06yamaga.csv 07fukush.csv 08ibarak.csv \
|
|
+ 09tochig.csv 10gumma.csv 11saitam.csv 12chiba.csv \
|
|
+ 13tokyo.csv 14kanaga.csv 15niigat.csv 16toyama.csv \
|
|
+ 17ishika.csv 18fukui.csv 19yamana.csv 20nagano.csv \
|
|
+ 21gifu.csv 22shizuo.csv 23aichi.csv 24mie.csv \
|
|
+ 25shiga.csv 26kyouto.csv 27osaka.csv 28hyogo.csv \
|
|
+ 29nara.csv 30wakaya.csv 31tottor.csv 32shiman.csv \
|
|
+ 33okayam.csv 34hirosh.csv 35yamagu.csv 36tokush.csv \
|
|
+ 37kagawa.csv 38ehime.csv 39kochi.csv 40fukuok.csv \
|
|
+ 41saga.csv 42nagasa.csv 43kumamo.csv 44oita.csv \
|
|
+ 45miyaza.csv 46kagosh.csv 47okinaw.csv
|
|
+EUCCSV= ${CSV:%.csv=%.euc-csv}
|
|
+PERL?= /usr/bin/perl
|
|
+NKF?= /usr/local/bin/nkf
|
|
+
|
|
+all: zipcodes.5digits zipcodes.7digits
|
|
+
|
|
+install: zipcodes.5digits zipcodes.7digits
|
|
+ mkdir -p ${PREFIX}/share/misc/jp-zipcodes
|
|
+ for i in zipcodes.5digits zipcodes.7digits; do \
|
|
+ ${INSTALL_DATA} $$i ${PREFIX}/share/misc/jp-zipcodes; \
|
|
+ done
|
|
+
|
|
+zipcodes.5digits: ${EUCCSV}
|
|
+ cat ${EUCCSV} | ${PERL} ${SCRIPTDIR}/genold.pl > zipcodes.5digits
|
|
+zipcodes.7digits: ${EUCCSV}
|
|
+ cat ${EUCCSV} | ${PERL} ${SCRIPTDIR}/gennew.pl > zipcodes.7digits
|
|
+
|
|
+.csv.euc-csv:
|
|
+ ${NKF} -X -e < $*.csv > $*.euc-csv
|