[svn-commits] qwell: linux/trunk r4847 - /linux/trunk/Makefile

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Aug 27 11:48:14 CDT 2008


Author: qwell
Date: Wed Aug 27 11:48:13 2008
New Revision: 4847

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4847
Log:
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)

Modified:
    linux/trunk/Makefile

Modified: linux/trunk/Makefile
URL: http://svn.digium.com/view/dahdi/linux/trunk/Makefile?view=diff&rev=4847&r1=4846&r2=4847
==============================================================================
--- linux/trunk/Makefile (original)
+++ linux/trunk/Makefile Wed Aug 27 11:48:13 2008
@@ -56,6 +56,8 @@
 endif
 
 MODULE_ALIASES:=wcfxs wctdm8xxp wct2xxp
+
+INST_HEADERS:=kernel.h user.h fasthdlc.h wctdm_user.h
 
 DAHDI_BUILD_ALL:=m
 
@@ -130,20 +132,16 @@
 	$(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
 	- at rm -f $(DESTDIR)/usr/include/zaptel/*.h
 	- at 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:




More information about the svn-commits mailing list