Преглед на файлове

Merge pull request #730 from tru7/patch-3

knxd: use better macrons in Makefile
Steven Barth преди 10 години
родител
ревизия
8602b0d415
променени са 1 файла, в които са добавени 33 реда и са изтрити 32 реда
  1. 33
    32
      net/knxd/Makefile

+ 33
- 32
net/knxd/Makefile Целия файл

@@ -15,6 +15,7 @@ include $(TOPDIR)/rules.mk
15 15
 PKG_NAME:=knxd
16 16
 PKG_REV:=b01d99c6748cc565f1be69b68cf2b9d3115e8ce5
17 17
 PKG_VERSION:=2014-12-20
18
+PKG_RELEASE:=1
18 19
 
19 20
 PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
20 21
 PKG_LICENSE:=GPL-2.0+
@@ -91,26 +92,26 @@ define Build/Compile
91 92
 endef
92 93
 
93 94
 define Package/knxd/install
94
-	mkdir -p $(1)/usr/bin
95
-	$(CP) $(PKG_BUILD_DIR)/src/server/knxd $(1)/usr/bin/
96
-	$(CP) $(PKG_BUILD_DIR)/src/tools/bcu/bcuaddrtab $(1)/usr/bin/
97
-	$(CP) $(PKG_BUILD_DIR)/src/tools/bcu/bcuread $(1)/usr/bin/
98
-	$(CP) $(PKG_BUILD_DIR)/src/tools/eibnet/eibnetsearch $(1)/usr/bin/
99
-	$(CP) $(PKG_BUILD_DIR)/src/tools/eibnet/eibnetdescribe $(1)/usr/bin/
100
-	mkdir -p $(1)/etc/init.d
101
-	$(CP) ./files/knxd.init $(1)/etc/init.d/knxd
102
-	mkdir -p $(1)/etc/config
103
-	$(CP) ./files/knxd.config $(1)/etc/config/knxd
95
+	$(INSTALL_DIR) $(1)/usr/bin
96
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/server/knxd $(1)/usr/bin/
97
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/bcu/bcuaddrtab $(1)/usr/bin/
98
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/bcu/bcuread $(1)/usr/bin/
99
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/eibnet/eibnetsearch $(1)/usr/bin/
100
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/eibnet/eibnetdescribe $(1)/usr/bin/
101
+	$(INSTALL_DIR) $(1)/etc/init.d
102
+	$(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
103
+	$(INSTALL_DIR) $(1)/etc/config
104
+	$(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
104 105
 endef
105 106
 #       add this line above to support USB
106 107
 #       $(CP) $(PKG_BUILD_DIR)/src/usb/findknxusb $(1)/usr/bin/
107 108
 
108 109
 define Package/knxd-tools/install
109
-	mkdir -p $(1)/usr/lib
110
-	$(CP) $(PKG_BUILD_DIR)/src/client/c/.libs/libeibclient.so.0.0.0 $(1)/usr/lib/
110
+	$(INSTALL_DIR) $(1)/usr/lib
111
+	$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/client/c/.libs/libeibclient.so.0.0.0 $(1)/usr/lib/
111 112
 	ln -s libeibclient.so.0.0.0 $(1)/usr/lib/libeibclient.so
112 113
 	ln -s libeibclient.so.0.0.0 $(1)/usr/lib/libeibclient.so.0
113
-	mkdir -p $(1)/usr/bin
114
+	$(INSTALL_DIR) $(1)/usr/bin
114 115
 	-rm -f $(1)/usr/bin/knxread
115 116
 	-rm -f $(1)/usr/bin/knxreadtemp
116 117
 	-rm -f $(1)/usr/bin/knxwrite
@@ -131,25 +132,25 @@ define Package/knxd-tools/install
131 132
 	ln -s knxtool $(1)/usr/bin/knxswrite
132 133
 	ln -s knxtool $(1)/usr/bin/knxbool
133 134
 	ln -s knxtool $(1)/usr/bin/knxdimup
134
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/knxtool $(1)/usr/bin/
135
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/busmonitor1 $(1)/usr/bin/
136
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/busmonitor2 $(1)/usr/bin/
137
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/busmonitor3 $(1)/usr/bin/
138
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/eibread-cgi $(1)/usr/bin/
139
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/eibwrite-cgi $(1)/usr/bin/
140
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/vbusmonitor1 $(1)/usr/bin/
141
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/vbusmonitor2 $(1)/usr/bin/
142
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/vbusmonitor3 $(1)/usr/bin/
143
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupwrite $(1)/usr/bin/
144
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupswrite $(1)/usr/bin/
145
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/grouplisten $(1)/usr/bin/
146
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupread $(1)/usr/bin/
147
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupresponse $(1)/usr/bin/
148
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupreadresponse $(1)/usr/bin/
149
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketlisten $(1)/usr/bin/
150
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketread $(1)/usr/bin/
151
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketwrite $(1)/usr/bin/
152
-	$(CP) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketswrite $(1)/usr/bin/
135
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/knxtool $(1)/usr/bin/
136
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/busmonitor1 $(1)/usr/bin/
137
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/busmonitor2 $(1)/usr/bin/
138
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/busmonitor3 $(1)/usr/bin/
139
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/eibread-cgi $(1)/usr/bin/
140
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/eibwrite-cgi $(1)/usr/bin/
141
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/vbusmonitor1 $(1)/usr/bin/
142
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/vbusmonitor2 $(1)/usr/bin/
143
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/vbusmonitor3 $(1)/usr/bin/
144
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupwrite $(1)/usr/bin/
145
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupswrite $(1)/usr/bin/
146
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/grouplisten $(1)/usr/bin/
147
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupread $(1)/usr/bin/
148
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupresponse $(1)/usr/bin/
149
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupreadresponse $(1)/usr/bin/
150
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketlisten $(1)/usr/bin/
151
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketread $(1)/usr/bin/
152
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketwrite $(1)/usr/bin/
153
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/examples/.libs/groupsocketswrite $(1)/usr/bin/
153 154
 endef
154 155
 
155 156
 $(eval $(call BuildPackage,knxd))