isdn4k-utils/areacode/Makefile.in

54 lines
1.2 KiB
Makefile

#
# This Makefile is used for compatibility to the
# isdn4k-utils package. In order to superseede
# the original Makefile, it is called GNUmakefile.
#
#ifndef CONFIG_AREACODE_DATA
#CONFIG_AREACODE_DATA=x
#endif
ifeq (../.config,$(wildcard ../.config))
include ../.config
DATAOPTS := DATATARGET=$(shell echo $(CONFIG_AREACODE_DATA))/areacodes
#
# Install as root with numeric Id's, since these are the
# only ones that _really_ exist on _every_ system.
#
BUILDOPTS := $(DATAOPTS)
INSTALLOPTS := $(DATAOPTS) INSTALL="install -o 0 -g 0 -m 644"
endif
all: .depend
$(MAKE) -f make/linux.mak $(BUILDOPTS) all
depend dep: .depend
.depend:
$(MAKE) -f make/linux.mak $(BUILDOPTS) depend
config:
@cp Makefile.in GNUmakefile
clean:
$(MAKE) -f make/linux.mak clean
distclean:
$(MAKE) -f make/linux.mak distclean
rm -f GNUmakefile
install-man:
install: all
ifeq ($(CONFIG_LIB_AREACODE),y)
mkdir -p $(CONFIG_AREACODE_DATA)
$(MAKE) -f make/linux.mak $(INSTALLOPTS) install
endif
# -@test "$(CONFIG_AREACODE_DATA)" != "x" && \
# mkdir -p $(CONFIG_AREACODE_DATA) && \
# $(MAKE) -f make/linux.mak $(INSTALLOPTS) install
uninstall:
rm -f $(shell echo $(CONFIG_AREACODE_DATA))/areacodes