From 4da735b594d993c1f5573d6449a77ef84d699e48 Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Wed, 27 Aug 2008 16:48:13 +0000 Subject: Set a list of headers to install/uninstall, so the lists don't get out of sync (note the previously missing fasthdlc.h in the uninstall-include target) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4847 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 95b7905..6c255f1 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,8 @@ endif MODULE_ALIASES:=wcfxs wctdm8xxp wct2xxp +INST_HEADERS:=kernel.h user.h fasthdlc.h wctdm_user.h + DAHDI_BUILD_ALL:=m KMAKE=$(MAKE) -C $(KSRC) ARCH=$(ARCH) SUBDIRS=$(PWD)/drivers/dahdi DAHDI_INCLUDE=$(PWD)/include DAHDI_MODULES_EXTRA="$(DAHDI_MODULES_EXTRA)" HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE) @@ -130,20 +132,16 @@ uninstall-firmware: $(MAKE) -C drivers/dahdi/firmware hotplug-uninstall DESTDIR=$(DESTDIR) install-include: - install -D -m 644 include/dahdi/kernel.h $(DESTDIR)/usr/include/dahdi/kernel.h - install -D -m 644 include/dahdi/user.h $(DESTDIR)/usr/include/dahdi/user.h - install -D -m 644 include/dahdi/fasthdlc.h $(DESTDIR)/usr/include/dahdi/fasthdlc.h -# Include any driver-specific header files here - install -D -m 644 include/dahdi/wctdm_user.h $(DESTDIR)/usr/include/dahdi/wctdm_user.h + for hdr in $(INST_HEADERS); do \ + install -D -m 644 include/dahdi/$$hdr $(DESTDIR)/usr/include/dahdi/$$hdr; \ + done -@rm -f $(DESTDIR)/usr/include/zaptel/*.h -@rmdir $(DESTDIR)/usr/include/zaptel uninstall-include: - rm -f $(DESTDIR)/usr/include/dahdi/kernel.h - rm -f $(DESTDIR)/usr/include/dahdi/user.h - rm -f $(DESTDIR)/usr/include/dahdi/fasthdlc.h -# Include any driver-specific header files here - rm -f $(DESTDIR)/usr/include/dahdi/wctdm_user.h + for hdr in $(INST_HEADERS); do \ + rm -f $(DESTDIR)/usr/include/dahdi/$$hdr; \ + done -rmdir $(DESTDIR)/usr/include/dahdi install-devices: -- cgit v1.2.3