-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move headers from include to include/grass (#1350)
The include contained the header files are there directly while distribution has them in include/grass which is an unnecessary difference. Having them in a subdirectory can make it easier for code editing tools and other operations directly running on the source tree. See also: * https://trac.osgeo.org/grass/wiki/G8SourceLayout This creates the new grass directory, moves the header files, and updates build system to use this new layout. Makefile for makefiles and for header files is now split into two.
- Loading branch information
1 parent
27b12e2
commit 61d6f8c
Showing
110 changed files
with
56 additions
and
45 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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
MODULE_TOPDIR = ../.. | ||
|
||
include $(MODULE_TOPDIR)/include/Make/Vars.make | ||
include $(MODULE_TOPDIR)/include/Make/Rules.make | ||
|
||
SRCH := $(wildcard ../../include/grass/*.h ../../include/grass/defs/*.h ../../include/grass/vect/*.h ../../include/grass/iostream/*.h) | ||
DSTH := $(patsubst ../../include/grass/%.h,$(ARCH_INCDIR)/%.h,$(SRCH)) | ||
DSTH_EXTRA = $(ARCH_INCDIR)/copying.h $(ARCH_INCDIR)/citing.h $(ARCH_INCDIR)/confparms.h | ||
|
||
default: $(DSTH) $(DSTH_EXTRA) | ||
|
||
# cancel rule from Rules.make | ||
$(ARCH_INCDIR)/%.h: %.h | ||
|
||
$(ARCH_INCDIR)/defs/%.h: defs/%.h | $(ARCH_INCDIR)/defs | ||
$(INSTALL_DATA) $< $@ | ||
|
||
$(ARCH_INCDIR)/vect/%.h: vect/%.h | $(ARCH_INCDIR)/vect | ||
$(INSTALL_DATA) $< $@ | ||
|
||
$(ARCH_INCDIR)/iostream/%.h: iostream/%.h | $(ARCH_INCDIR)/iostream | ||
$(INSTALL_DATA) $< $@ | ||
|
||
$(ARCH_INCDIR)/%.h: %.h | $(ARCH_INCDIR) | ||
$(INSTALL_DATA) $< $@ | ||
|
||
$(ARCH_INCDIR)/defs: | $(ARCH_INCDIR) | ||
$(MKDIR) $@ | ||
|
||
$(ARCH_INCDIR)/vect: | $(ARCH_INCDIR) | ||
$(MKDIR) $@ | ||
|
||
$(ARCH_INCDIR)/iostream: | $(ARCH_INCDIR) | ||
$(MKDIR) $@ | ||
|
||
$(ARCH_INCDIR)/copying.h: $(MODULE_TOPDIR)/COPYING | $(ARCH_INCDIR) | ||
sed -e 's/^\(.*\)$$/"\1\\n"/' $< > $@ | ||
|
||
$(ARCH_INCDIR)/citing.h: $(MODULE_TOPDIR)/CITING | $(ARCH_INCDIR) | ||
sed -e 's/^\(.*\)$$/"\1\\n"/' $< > $@ | ||
|
||
$(ARCH_INCDIR)/confparms.h: $(MODULE_TOPDIR)/config.status | $(ARCH_INCDIR) | ||
sed -n '7s/^#\(.*\)$$/"\1"/p' $< > $@ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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