Skip to content

Commit

Permalink
update Makefile for new ctypesgen version
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Jun 17, 2021
1 parent 5fd582b commit 8c93979
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions python/grass/ctypes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ ifneq ($(findstring darwin,$(ARCH)),)
MAC_FLAGS = "-D_Nullable="
endif

SED = sed
CTYPESGEN = ./ctypesgen.py
CTYPESGEN = ./run.py
CTYPESFLAGS = --cpp "$(CC) -E $(CPPFLAGS) $(LFS_CFLAGS) $(MAC_FLAGS) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC) -D__GLIBC_HAVE_LONG_LONG"
EXTRA_CLEAN_FILES := $(wildcard ctypesgencore/*.pyc) $(wildcard ctypesgencore/*/*.pyc)

Expand All @@ -76,8 +75,8 @@ PYDIR = $(ETC)/python
GDIR = $(PYDIR)/grass
DSTDIR = $(GDIR)/lib

PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__ ctypes_preamble ctypes_loader)
PYCFILES := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES) __init__ ctypes_preamble ctypes_loader)
PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES))
PYCFILES := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES))
LPYFILES := $(patsubst %,$(OBJDIR)/%.py,$(MODULES))

ifeq ($(strip $(GRASS_LIBRARY_TYPE)),shlib)
Expand All @@ -90,13 +89,10 @@ default:
exit 1
endif

$(DSTDIR)/__init__.py: __init__.py | $(DSTDIR)
$(INSTALL_DATA) $< $@
# $(DSTDIR)/__init__.py: __init__.py | $(DSTDIR)
# $(INSTALL_DATA) $< $@

$(DSTDIR)/%.py: $(OBJDIR)/%.py | $(DSTDIR)
$(SED) -f fix.sed $< > $@

$(DSTDIR)/ctypes_%.py: %.py | $(DSTDIR)
$(INSTALL_DATA) $< $@

define module_rule
Expand Down

0 comments on commit 8c93979

Please sign in to comment.