Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e71661f
commit b1a75fd
Showing
50 changed files
with
41,436 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,70 @@ | ||
#-*- Makefile -*- | ||
|
||
.SUFFIXES: .G .L .N .gon .line .name | ||
# Some recursive calls are only there because they were needed in Makefile.win | ||
|
||
CP = cp | ||
ECHO = echo | ||
RM = rm -f | ||
PKGNAME = mapdata | ||
MKDIR = mkdir | ||
AWK = @AWK@ | ||
|
||
GDATA = china.G japan.G nzHires.G rivers.G worldHires.G world2Hires.G | ||
LDATA = china.L japan.L nzHires.L rivers.L worldHires.L world2Hires.L | ||
NDATA = china.N japan.N nzHires.N rivers.N worldHires.N world2Hires.N | ||
.SUFFIXES: .G .L .N .gon .line .name | ||
|
||
GDATA = china.G japan.G nzHires.G rivers.G worldHires.G world2Hires.G worldLores.G world2Lores.G | ||
LDATA = china.L japan.L nzHires.L rivers.L worldHires.L world2Hires.L worldLores.L world2Lores.L | ||
NDATA = china.N japan.N nzHires.N rivers.N worldHires.N world2Hires.N worldLores.N world2Lores.N | ||
WORLD2 = world2Lores.line world2Hires.line | ||
|
||
mapdir = ../inst/mapdata | ||
|
||
.line.L: | ||
@$(MKDIR) -p ../inst/mapdata | ||
./Lmake 0 s b ${*}.line ${*}.linestats ../inst/mapdata/${*}.L | ||
@$(MKDIR) -p $(mapdir) | ||
./Lmake 0 s b ${*}.line ${*}.linestats $(mapdir)/${*}.L | ||
|
||
.gon.G: | ||
./Gmake b ${*}.gon ${*}.gonstats ../inst/mapdata/${*}.G ../inst/mapdata/${*}.L | ||
./Gmake b ${*}.gon ${*}.gonstats $(mapdir)/${*}.G $(mapdir)/${*}.L | ||
|
||
.name.N: | ||
@$(MKDIR) -p ../inst/mapdata | ||
@$(CP) ${*}.name ../inst/mapdata/${*}.N | ||
@$(MKDIR) -p $(mapdir) | ||
@$(CP) ${*}.name $(mapdir)/${*}.N | ||
|
||
.PHONY: all gdata ldata ndata | ||
.PHONY: all gdata ldata ndata world2 lmake gmake | ||
|
||
all: gdata ndata | ||
|
||
gdata: Gmake ldata | ||
$(MAKE) $(GDATA) | ||
gdata: gmake ldata | ||
$(MAKE) -f "$(R_HOME)/etc$(R_ARCH)/Makeconf" -f Makefile $(GDATA) | ||
|
||
ldata: Lmake world2Hires.line | ||
$(MAKE) $(LDATA) | ||
ldata: lmake world2 | ||
$(MAKE) -f "$(R_HOME)/etc$(R_ARCH)/Makeconf" -f Makefile $(LDATA) | ||
|
||
ndata: world2Hires.line | ||
$(MAKE) $(NDATA) | ||
ndata: world2 | ||
$(MAKE) -f "$(R_HOME)/etc$(R_ARCH)/Makeconf" -f Makefile $(NDATA) | ||
|
||
world2: | ||
$(MAKE) -f "$(R_HOME)/etc$(R_ARCH)/Makeconf" -f Makefile $(WORLD2) | ||
|
||
lmake: | ||
$(MAKE) -f "$(R_HOME)/etc$(R_ARCH)/Makeconf" -f Makefile Lmake | ||
|
||
gmake: | ||
$(MAKE) -f "$(R_HOME)/etc$(R_ARCH)/Makeconf" -f Makefile Gmake | ||
|
||
world2Hires.line: worldHires.line | ||
@$(ECHO) "Converting world to world2" | ||
$(AWK) -f convert.awk < worldHires.line > world2Hires.line | ||
@$(ECHO) "Converting worldHires to world2Hires" | ||
$(AWK) -f ./convert.awk < worldHires.line > world2Hires.line | ||
@$(CP) worldHires.linestats world2Hires.linestats | ||
@$(CP) worldHires.gon world2Hires.gon | ||
@$(CP) worldHires.gonstats world2Hires.gonstats | ||
@$(CP) worldHires.name world2Hires.name | ||
|
||
world2Lores.line: worldLores.line | ||
@$(ECHO) "Converting worldLores to world2Lores" | ||
$(AWK) -f ./convert.awk < worldLores.line > world2Lores.line | ||
@$(CP) worldLores.linestats world2Lores.linestats | ||
@$(CP) worldLores.gon world2Lores.gon | ||
@$(CP) worldLores.gonstats world2Lores.gonstats | ||
@$(CP) worldLores.name world2Lores.name | ||
|
||
clean: | ||
$(RM) Gmake Lmake ../inst/mapdata/* world2Hires.* $(PKGNAME).s[lo] $(PKGNAME).dylib *.exe | ||
$(RM) Gmake Lmake $(mapdir)/* world2* | ||
$(RM) -r ../inst |
Oops, something went wrong.