source: src/router/kromo/dd-wrt/Makefile @ 14659

Last change on this file since 14659 was 14659, checked in by BrainSlayer, 3 years ago

fun

File size: 21.4 KB
Line 
1include $(TOP)/.config
2
3ifneq ($(wildcard $(SRCBASE)/cy_conf.mak),)
4  include $(SRCBASE)/cy_conf.mak
5endif
6
7all:
8
9install:
10#       rm -rf $(INSTALLDIR)/www
11        install -d $(INSTALLDIR)/www
12        install -m 644 $(wildcard *.asp) $(wildcard *.svg) $(wildcard *.css) $(wildcard *.jpg) $(wildcard *.gif) $(wildcard *.js) $(wildcard *.htm) $(wildcard *.ico) $(wildcard *.html) $(INSTALLDIR)/www
13
14        cp -a images $(INSTALLDIR)/www
15        cp -a style $(INSTALLDIR)/www
16       
17ifeq ($(CONFIG_DIST),"micro")
18        rm -f $(INSTALLDIR)/www/images/favicon.ico
19        rm -f $(INSTALLDIR)/www/images/dd-logo.png
20        rm -f $(INSTALLDIR)/www/images/valid-xhtml10.png
21ifneq ($(CONFIG_COMPRESSEDJS),y)
22        cp common_micro.js $(INSTALLDIR)/www/common.js
23else
24        cp common_micro.compressed.js $(INSTALLDIR)/www/common.js
25endif
26        rm -f $(INSTALLDIR)/www/Log_incoming.asp
27        rm -f $(INSTALLDIR)/www/Log_outgoing.asp
28endif
29
30ifneq ($(CONFIG_AOSS),y)
31        rm -f $(INSTALLDIR)/www/AOSS.asp
32endif
33
34ifeq ($(CONFIG_DIST),"micro-special")
35        rm -f $(INSTALLDIR)/www/images/favicon.ico
36        rm -f $(INSTALLDIR)/www/images/dd-logo.png
37        rm -f $(INSTALLDIR)/www/images/valid-xhtml10.png
38ifneq ($(CONFIG_COMPRESSEDJS),y)
39        cp common_micro.js $(INSTALLDIR)/www/common.js
40else
41        cp common_micro.compressed.js $(INSTALLDIR)/www/common.js
42endif
43        rm -f $(INSTALLDIR)/www/Log_incoming.asp
44        rm -f $(INSTALLDIR)/www/Log_outgoing.asp
45endif
46
47        rm -f $(INSTALLDIR)/www/common_micro.js
48        rm -f $(INSTALLDIR)/www/common_micro.compressed.js
49
50ifneq ($(CONFIG_DIST),"micro")
51ifneq ($(CONFIG_DIST),"micro-special")
52ifeq ($(CONFIG_DEFAULT_COUNTRYCODE),JP)
53        cp -a help_jp $(INSTALLDIR)/www
54        mv $(INSTALLDIR)/www/help_jp $(INSTALLDIR)/www/help
55else
56ifneq ($(CONFIG_EXTHELP),y)
57        cp -a help $(INSTALLDIR)/www
58endif
59endif
60        mkdir -p $(INSTALLDIR)/www/js
61endif
62endif
63
64ifeq ($(CONFIG_TW6600),y)
65        cp -a help $(INSTALLDIR)/www
66        mkdir -p $(INSTALLDIR)/www/js
67endif
68
69
70        cp -a lang_pack $(INSTALLDIR)/www
71        rm -f $(INSTALLDIR)/www/lang_pack/arabic.js     
72       
73ifneq ($(CONFIG_LANGUAGE),y)
74        rm -f $(INSTALLDIR)/www/lang_pack/*.js
75        cp lang_pack/english.js $(INSTALLDIR)/www/lang_pack/
76endif
77        $(TOP)/tools/jsformat $(INSTALLDIR)/www/lang_pack/*.js
78        ln -s ../tmp/www $(INSTALLDIR)/www/user
79
80ifeq ($(CONFIG_WIKAR),y)
81        cp -a wikar $(INSTALLDIR)/www/style
82endif
83
84
85ifeq ($(CONFIG_SPUTNIK_APD),y)
86        cp sputnik/sputnik.png $(INSTALLDIR)/www/images
87endif
88ifeq ($(CONFIG_WIFIDOG),y)
89        cp wifidog/*.png $(INSTALLDIR)/www/images
90endif
91ifeq ($(CONFIG_HOTSPOT),y)
92        cp hotspotsystem/hotspotsystem.png $(INSTALLDIR)/www/images
93endif
94
95ifeq ($(CONFIG_3COM),y)
96       
97        mkdir $(INSTALLDIR)/www/style/3com
98        cp 3com/style.css $(INSTALLDIR)/www/style/3com
99        cp 3com/images/* $(INSTALLDIR)/www/images
100endif
101
102ifeq ($(CONFIG_BUFFALO),y)
103       
104        mkdir $(INSTALLDIR)/www/style/buffalo
105        cp buffalo/style.css $(INSTALLDIR)/www/style/buffalo
106        cp buffalo/favicon.ico $(INSTALLDIR)/www/images
107        cp buffalo/images/* $(INSTALLDIR)/www/images
108        cp buffalo/help/* $(INSTALLDIR)/www/help
109endif
110
111ifeq ($(CONFIG_CORENET),y)
112        mkdir $(INSTALLDIR)/www/style/corenet
113        cp -a corenet/help $(INSTALLDIR)/www
114        cp corenet/style.css $(INSTALLDIR)/www/style/corenet
115        cp corenet/images/* $(INSTALLDIR)/www/images
116        cp corenet/*.asp $(INSTALLDIR)/www/
117        cp corenet/common.js $(INSTALLDIR)/www
118        cp ../bisi/*.asp $(INSTALLDIR)/www
119        cp -f corenet/favicon.ico $(INSTALLDIR)/www/images/favicon.ico
120endif
121ifeq ($(CONFIG_XIOCOM),y)
122        mkdir $(INSTALLDIR)/www/style/xiocom
123        cp xiocom/style.css $(INSTALLDIR)/www/style/xiocom
124        cp xiocom/images/* $(INSTALLDIR)/www/images
125endif
126
127ifeq ($(CONFIG_RED),y)
128        mkdir $(INSTALLDIR)/www/style/red
129#       cp red/style.css $(INSTALLDIR)/www/style/red
130#       cp red/style_ie.css $(INSTALLDIR)/www/style/red
131        touch $(INSTALLDIR)/www/style/red/style.css
132        cp common_style/common.css $(INSTALLDIR)/www/style
133        cp red/logo.png $(INSTALLDIR)/www/style
134endif
135
136ifeq ($(CONFIG_FONSTYLE),y)
137        mkdir $(INSTALLDIR)/www/style/fon
138        cp fon/style.css $(INSTALLDIR)/www/style/fon
139        cp fon/style_ie.css $(INSTALLDIR)/www/style/fon
140        cp fon/commonfon.css $(INSTALLDIR)/www/style
141        cp fon/fon.jpg $(INSTALLDIR)/www/style
142endif
143
144ifeq ($(CONFIG_BLUE),y)
145        mkdir $(INSTALLDIR)/www/style/blue
146#       cp blue/style.css $(INSTALLDIR)/www/style/blue
147#       cp blue/style_ie.css $(INSTALLDIR)/www/style/blue
148        touch $(INSTALLDIR)/www/style/blue/style.css
149        cp common_style/common.css $(INSTALLDIR)/www/style
150        cp blue/logo.png $(INSTALLDIR)/www/style
151endif
152
153ifeq ($(CONFIG_ELEGANT),y)
154        mkdir $(INSTALLDIR)/www/style/elegant
155ifneq ($(CONFIG_ROUTERSTYLE),y)
156        cp elegant/style.css $(INSTALLDIR)/www/style/elegant
157        cp elegant/style_ie.css $(INSTALLDIR)/www/style/elegant
158else
159        touch $(INSTALLDIR)/www/style/elegant/style.css
160endif
161        cp common_style/common.css $(INSTALLDIR)/www/style
162        cp elegant/logo.png $(INSTALLDIR)/www/style
163        cp elegant/logo-trial.png $(INSTALLDIR)/www/style
164        cp elegant/logo-cpe.png $(INSTALLDIR)/www/style
165endif
166
167ifeq ($(CONFIG_CYAN),y)
168        mkdir $(INSTALLDIR)/www/style/cyan
169#       cp cyan/style.css $(INSTALLDIR)/www/style/cyan
170#       cp cyan/style_ie.css $(INSTALLDIR)/www/style/cyan
171        touch $(INSTALLDIR)/www/style/cyan/style.css
172        cp common_style/common.css $(INSTALLDIR)/www/style
173        cp cyan/logo.png $(INSTALLDIR)/www/style
174endif
175
176ifeq ($(CONFIG_CESAR),y)
177        mkdir $(INSTALLDIR)/www/style/cesar
178        cp cesar/style.css $(INSTALLDIR)/www/style/cesar
179        cp cesar/style_ie.css $(INSTALLDIR)/www/style/cesar
180        cp cesar/common.css $(INSTALLDIR)/www/style
181        cp cesar/logo.png $(INSTALLDIR)/www/style
182endif
183
184ifeq ($(CONFIG_ALEDR),y)
185        mkdir $(INSTALLDIR)/www/style/cyan
186        cp aledr/style.css $(INSTALLDIR)/www/style/cyan
187        cp aledr/style_ie.css $(INSTALLDIR)/www/style/cyan
188        cp aledr/common.css $(INSTALLDIR)/www/style
189        cp aledr/logo.jpg $(INSTALLDIR)/www/style
190endif
191
192ifeq ($(CONFIG_YELLOW),y)
193        mkdir $(INSTALLDIR)/www/style/yellow
194#       cp yellow/style.css $(INSTALLDIR)/www/style/yellow
195#       cp yellow/style_ie.css $(INSTALLDIR)/www/style/yellow
196        touch $(INSTALLDIR)/www/style/yellow/style.css
197        cp common_style/common.css $(INSTALLDIR)/www/style
198        cp yellow/logo.png $(INSTALLDIR)/www/style
199endif
200
201ifeq ($(CONFIG_GREEN),y)
202        mkdir $(INSTALLDIR)/www/style/green
203#       cp green/style.css $(INSTALLDIR)/www/style/green
204#       cp green/style_ie.css $(INSTALLDIR)/www/style/green
205        touch $(INSTALLDIR)/www/style/green/style.css
206        cp common_style/common.css $(INSTALLDIR)/www/style
207        cp green/logo.png $(INSTALLDIR)/www/style
208endif
209
210ifeq ($(CONFIG_ORANGE),y)
211        mkdir $(INSTALLDIR)/www/style/orange
212#       cp orange/style.css $(INSTALLDIR)/www/style/orange
213#       cp orange/style_ie.css $(INSTALLDIR)/www/style/orange
214        touch $(INSTALLDIR)/www/style/orange/style.css
215        cp common_style/common.css $(INSTALLDIR)/www/style
216        cp orange/logo.png $(INSTALLDIR)/www/style
217endif
218
219ifeq ($(CONFIG_34TELECOM),y)
220        $(MAKE) -C $(SRCBASE)/router/kromo/34telecom/ install
221        mkdir $(INSTALLDIR)/www/style/cyan
222        cp cyan/style.css $(INSTALLDIR)/www/style/cyan
223        cp cyan/style_ie.css $(INSTALLDIR)/www/style/cyan
224        cp 34telecom/common.css $(INSTALLDIR)/www/style
225#       cp cyan/logo.png $(INSTALLDIR)/www/style
226        cp -f 34telecom/logo.png $(INSTALLDIR)/www/style/
227else
228
229ifeq ($(CONFIG_PWC),y)
230#       cp ../windows_js/javascripts/prototype.js $(INSTALLDIR)/www/js
231#       cp ../windows_js/javascripts/effects.js $(INSTALLDIR)/www/js
232#       cp ../windows_js/javascripts/window.js $(INSTALLDIR)/www/js
233#       cp ../windows_js/javascripts/window_effects.js $(INSTALLDIR)/www/js
234        cp ../windows_js/javascripts/prototype.compressed.js $(INSTALLDIR)/www/js/prototype.js
235        cp ../windows_js/javascripts/effects.compressed.js $(INSTALLDIR)/www/js/effects.js
236        cp ../windows_js/javascripts/window.compressed.js $(INSTALLDIR)/www/js/window.js
237        cp ../windows_js/javascripts/window_effects.compressed.js $(INSTALLDIR)/www/js/window_effects.js
238        mkdir -p $(INSTALLDIR)/www/style/pwc
239#       mkdir -p $(INSTALLDIR)/www/style/pwc/default
240#       cp ../windows_js/themes/default/* $(INSTALLDIR)/www/style/pwc/default
241        cp ../windows_js/themes/default.css $(INSTALLDIR)/www/style/pwc
242        cp -r common_style/pwc $(INSTALLDIR)/www/style
243        cp common_style/common.css $(INSTALLDIR)/www/style
244endif
245
246ifeq ($(CONFIG_SKYTEL),y)
247        cp -a skytel $(INSTALLDIR)/www/style
248endif
249
250ifeq ($(CONFIG_NEWMEDIA),y)
251        cp -f nmn/nmn_logo.png $(INSTALLDIR)/www/style/logo.png
252endif
253ifeq ($(CONFIG_MYNETWAY),y)
254        cp -f mynetway/logo.png $(INSTALLDIR)/www/style/logo.png
255endif
256ifeq ($(CONFIG_WIKINGS),y)
257        mkdir $(INSTALLDIR)/www/style/wikings
258        cp wikings/common.css $(INSTALLDIR)/www/style/
259        cp wikings/style.css $(INSTALLDIR)/www/style/wikings
260        cp wikings/images/* $(INSTALLDIR)/www/images
261        cp wikings/help/* $(INSTALLDIR)/www/help
262        cp wikings/common.js $(INSTALLDIR)/www
263        cp wikings/About.htm $(INSTALLDIR)/www
264        cp wikings/*.asp $(INSTALLDIR)/www
265        rm -f $(INSTALLDIR)/www/About.htm
266        rm -f $(INSTALLDIR)/www/images/favicon.ico
267endif
268ifeq ($(CONFIG_NEXTMEDIA),y)
269        mkdir $(INSTALLDIR)/www/style/nextmedia
270        cp wikings/common.css $(INSTALLDIR)/www/style/
271        cp wikings/style.css $(INSTALLDIR)/www/style/nextmedia
272        cp wikings/images/* $(INSTALLDIR)/www/images
273        cp wikings/help/* $(INSTALLDIR)/www/help
274        rm -f $(INSTALLDIR)/www/images/favicon.ico
275endif
276ifeq ($(CONFIG_ALLNETWRT),y)
277        cp -f allnet/logo.png $(INSTALLDIR)/www/style/logo.png
278endif
279ifeq ($(CONFIG_ALLNET),y)
280        cp -f allnet/logo.png $(INSTALLDIR)/www/style/logo.png
281endif
282
283ifeq ($(CONFIG_SPUTNIK),y)
284        cp -f sputnik/logo.png $(INSTALLDIR)/www/style
285endif
286
287ifeq ($(CONFIG_TELCOM),y)
288        cp -f telcom/logo.png $(INSTALLDIR)/www/style
289endif
290
291ifeq ($(CONFIG_GLAUCO),y)
292        cp -f glauco/logo.png $(INSTALLDIR)/www/style
293        cp -f glauco/logo-help.png $(INSTALLDIR)/www/help/logo-help.png
294        rm -rf $(INSTALLDIR)/www/help
295        rm $(INSTALLDIR)/www/About.htm
296endif
297
298ifeq ($(CONFIG_GGEW),y)
299        cp -f ggew/logo.png $(INSTALLDIR)/www/style/logo.png
300endif
301ifeq ($(CONFIG_DDLAN),y)
302        cp -f ddlan/logo.png $(INSTALLDIR)/www/style/logo.png
303ifeq ($(CONFIG_NS5),y)
304        cp -f ddlan/logo_ns5.png $(INSTALLDIR)/www/style/logo.png
305endif
306ifeq ($(CONFIG_NS2),y)
307        cp -f ddlan/logo_ns2.png $(INSTALLDIR)/www/style/logo.png
308endif
309        cp -f ddlan/common.css $(INSTALLDIR)/www/style
310endif
311
312
313ifeq ($(CONFIG_NOLOGO),y)
314        rm -f $(INSTALLDIR)/www/style/logo.png
315        rm -f $(INSTALLDIR)/www/images/logo.png
316endif
317
318ifeq ($(CONFIG_MAKSAT_CORAL_ELEGANT),y)
319 ifneq ($(CONFIG_MAKSAT_BLANK),y)
320        mkdir $(INSTALLDIR)/www/style/maksat_coral_elegant
321        cp maksat/style-coral.css $(INSTALLDIR)/www/style/maksat_coral_elegant/style.css
322        cp maksat/common-coral.css $(INSTALLDIR)/www/style
323 endif
324endif
325ifeq ($(CONFIG_TRIMAX),y)
326        cp -f trimax/logo.png $(INSTALLDIR)/www/style/logo.png
327endif
328ifeq ($(CONFIG_CNC),y)
329        cp -f cnc/common.js $(INSTALLDIR)/www/common.js
330        cp -f cnc/logo.png $(INSTALLDIR)/www/style/logo.png
331        cp -f cnc/logo.png $(INSTALLDIR)/www/images/logo.png
332endif
333ifeq ($(CONFIG_MAKSAT),y)
334 ifeq ($(CONFIG_MAKSAT_BLANK),y)
335        cp -f maksat/blank/maksat_logo_help.png $(INSTALLDIR)/www/help/logo-help.png
336        cp -f maksat/blank/logo.png $(INSTALLDIR)/www/style/logo.png
337        cp -f maksat/blank/logo.png $(INSTALLDIR)/www/images/logo.png
338        cp -f maksat/SuperChannel.asp $(INSTALLDIR)/www
339        cp -f maksat/favicon.ico $(INSTALLDIR)/www/images/favicon.ico
340        cp -f maksat/blank/About.htm $(INSTALLDIR)/www/About.htm
341        cp -f maksat/help/HManagement.asp $(INSTALLDIR)/www/help/HManagement.asp
342        cp -f maksat/help/HServices.asp $(INSTALLDIR)/www/help/HServices.asp
343        cp -f maksat/help/HUpgrade.asp $(INSTALLDIR)/www/help/HUpgrade.asp
344        cp -f maksat/help/HStatus.asp $(INSTALLDIR)/www/help/HStatus.asp
345        cp -f maksat/help/index.asp $(INSTALLDIR)/www/help/index.asp
346 else
347        cp -f maksat/SuperChannel.asp $(INSTALLDIR)/www
348        cp -f maksat/logo.png $(INSTALLDIR)/www/style/logo.png
349        cp -f maksat/logo.png $(INSTALLDIR)/www/images/logo.png
350        cp -f maksat/maksat_logo_help.png $(INSTALLDIR)/www/help/logo-help.png
351        cp -f maksat/favicon.ico $(INSTALLDIR)/www/images/favicon.ico
352        cp -f maksat/About.htm $(INSTALLDIR)/www/About.htm
353        cp -f maksat/help/HManagement.asp $(INSTALLDIR)/www/help/HManagement.asp
354        cp -f maksat/help/HServices.asp $(INSTALLDIR)/www/help/HServices.asp
355        cp -f maksat/help/HUpgrade.asp $(INSTALLDIR)/www/help/HUpgrade.asp
356        cp -f maksat/help/HStatus.asp $(INSTALLDIR)/www/help/HStatus.asp
357        cp -f maksat/help/index.asp $(INSTALLDIR)/www/help/index.asp
358        cp -f maksat/common.js $(INSTALLDIR)/www/common.js
359        cp -f maksat/common.css $(INSTALLDIR)/www/style/common.css
360        cp maksat/images/* $(INSTALLDIR)/www/images
361        mkdir $(INSTALLDIR)/www/style/maksat
362        cp maksat/maksat/* $(INSTALLDIR)/www/style/maksat
363 endif
364endif
365ifeq ($(CONFIG_TMK),y)
366        #cp -f kmt/SuperChannel.asp $(INSTALLDIR)/www
367        cp -f kmt/logo.png $(INSTALLDIR)/www/style/logo.png
368        cp -f kmt/logo.png $(INSTALLDIR)/www/images/logo.png
369        cp -f kmt/kmt_logo_help.png $(INSTALLDIR)/www/help/logo-help.png
370        cp -f kmt/favicon.ico $(INSTALLDIR)/www/images/favicon.ico
371        cp -f kmt/About.htm $(INSTALLDIR)/www/About.htm
372        cp -f kmt/help/HManagement.asp $(INSTALLDIR)/www/help/HManagement.asp
373        cp -f kmt/help/HServices.asp $(INSTALLDIR)/www/help/HServices.asp
374        cp -f kmt/help/HUpgrade.asp $(INSTALLDIR)/www/help/HUpgrade.asp
375        cp -f kmt/help/HStatus.asp $(INSTALLDIR)/www/help/HStatus.asp
376        cp -f kmt/help/index.asp $(INSTALLDIR)/www/help/index.asp
377        #cp -f kmt/common.js $(INSTALLDIR)/www/common.js
378        #cp -f kmt/common.css $(INSTALLDIR)/www/style/common.css
379        #cp kmt/images/* $(INSTALLDIR)/www/images
380        #mkdir $(INSTALLDIR)/www/style/maksat
381        #cp maksat/maksat/* $(INSTALLDIR)/www/style/maksat
382endif
383ifneq ($(CONFIG_WAVESAT),y)
384        rm -f $(INSTALLDIR)/www/WiMAX.asp
385endif
386ifeq ($(CONFIG_ERC),y)
387        mkdir $(INSTALLDIR)/www/style/erc-machinery
388        cp -f erc/erc-machinery/style.css $(INSTALLDIR)/www/style/erc-machinery
389        cp -f erc/common.css $(INSTALLDIR)/www/style
390#       cp - ferc/images/logo.png $(INSTALLDIR)/www/style
391        cp -f erc/images/* $(INSTALLDIR)/www/images
392        cp erc/logo-help.png $(INSTALLDIR)/www/help/logo-help.png
393        cp erc/logo-help.png $(INSTALLDIR)/www/images/logo-help.png
394        cp -f erc/common.js $(INSTALLDIR)/www/common.js
395        cp -f erc/help/* $(INSTALLDIR)/www/help
396        cp -f erc/favicon.ico $(INSTALLDIR)/www/images/favicon.ico
397        cp -f erc/*.asp $(INSTALLDIR)/www/
398endif
399
400ifeq ($(CONFIG_MAKSAT_CORAL),y)
401 ifneq ($(CONFIG_MAKSAT_BLANK),y)
402        cp -f maksat/logo-coral.png $(INSTALLDIR)/www/style/logo-coral.png
403        cp -f maksat/logo-coral.png $(INSTALLDIR)/www/images/logo-coral.png
404        cp maksat_coral/images/* $(INSTALLDIR)/www/images
405        cp -f maksat/logo-coral.png $(INSTALLDIR)/www/images/logo-coral.png
406        mkdir $(INSTALLDIR)/www/style/maksat_coral
407        cp maksat_coral/maksat_coral/* $(INSTALLDIR)/www/style/maksat_coral
408 endif
409endif
410
411
412ifeq ($(CONFIG_KODATA),y)
413        cp -f kodata/logo.png $(INSTALLDIR)/www/style/logo.png
414endif
415
416ifeq ($(CONFIG_THOM),y)
417        cp -f thom/logo.png $(INSTALLDIR)/www/style/logo.png
418endif
419ifneq ($(CONFIG_REGISTER),y)
420        rm -f $(INSTALLDIR)/www/style/logo-trial.png
421        rm -f $(INSTALLDIR)/www/style/logo-cpe.png
422endif
423
424#ifneq ($(CONFIG_MADWIFI),y)
425#       cp Wireless_WDS.v23 $(INSTALLDIR)/www/Wireless_WDS.asp
426#endif
427ifneq ($(CONFIG_MSSID),y)
428        cp WEP.v23 $(INSTALLDIR)/www/WEP.asp
429        cp WL_WPATable.v23 $(INSTALLDIR)/www/WL_WPATable.asp
430#       cp WPA.v23 $(INSTALLDIR)/www/WPA.asp
431        cp WPA_Preshared.v23 $(INSTALLDIR)/www/WPA_Preshared.asp
432        cp WPA_Radius.v23 $(INSTALLDIR)/www/WPA_Radius.asp     
433        cp Wireless_Basic.v23 $(INSTALLDIR)/www/Wireless_Basic.asp
434        cp Wireless_Advanced.v23 $(INSTALLDIR)/www/Wireless_Advanced.asp
435endif
436ifeq ($(CONFIG_MADWIFI),y)
437        rm -f $(INSTALLDIR)/www/Wireless_Advanced.asp
438endif
439
440
441ifeq ($(CONFIG_SKYTRON),y)
442        cp -a skytron $(INSTALLDIR)/www/style
443endif
444
445ifeq ($(CONFIG_POWERNOC),y)
446        cp -a powernoc $(INSTALLDIR)/www/style
447endif
448
449ifeq ($(CONFIG_DLS),y)
450        cp -a dls $(INSTALLDIR)/www/style
451endif
452
453ifeq ($(CONFIG_FREEBIRD),y)
454        cp -a freebird $(INSTALLDIR)/www/style
455endif
456
457ifeq ($(CONFIG_WTS),y)
458        cp -a wts $(INSTALLDIR)/www/style
459endif
460
461ifeq ($(CONFIG_OMNI),y)
462        cp -a omni $(INSTALLDIR)/www/style
463endif
464
465ifeq ($(CONFIG_KROMO),y)
466        cp -a kromo $(INSTALLDIR)/www/style
467else
468        rm -f $(INSTALLDIR)/www/images/dd-wrt.gif
469endif
470
471
472ifeq ($(CONFIG_BRAINSLAYER),y)
473        cp -a brainslayer $(INSTALLDIR)/www/style
474endif
475
476ifeq ($(CONFIG_XIRIAN),y)
477        cp -a xirian $(INSTALLDIR)/www/style
478endif
479
480ifeq ($(CONFIG_ALFA_BRANDING1),y)
481        cp -f alfa/logo11.png $(INSTALLDIR)/www/style/xirian/logo.png
482endif
483
484ifeq ($(CONFIG_ALFA_BRANDING2),y)
485        cp -f alfa/logo22.png $(INSTALLDIR)/www/style/xirian/logo.png
486endif
487
488ifneq ($(CONFIG_USB),y)
489        rm -f $(INSTALLDIR)/www/USB.asp
490        rm -f $(INSTALLDIR)/www/USB.live.asp   
491        rm -f $(INSTALLDIR)/www/help/HUSB.asp
492endif
493
494ifneq ($(CONFIG_FTP),y)
495ifneq ($(CONFIG_SAMBASRV),y)
496        rm -f $(INSTALLDIR)/www/NAS.asp
497        rm -f $(INSTALLDIR)/www/help/HNAS.asp.asp
498endif
499endif
500
501ifneq ($(AOL_SUPPORT),1)
502        rm -f $(INSTALLDIR)/www/aol.asp
503        rm -f $(INSTALLDIR)/www/aol_error.asp
504endif
505
506ifneq ($(HSIAB_SUPPORT),1)
507        rm -f $(INSTALLDIR)/www/HotSpot_*
508        rm -f $(INSTALLDIR)/www/Config.asp
509        rm -f $(INSTALLDIR)/www/New_device.asp
510        rm -f $(INSTALLDIR)/www/Old_device.asp
511        rm -f $(INSTALLDIR)/www/Register*
512endif
513
514ifneq ($(HEARTBEAT_SUPPORT),1)
515        rm -f $(INSTALLDIR)/www/index_heartbeat.asp
516endif
517
518ifneq ($(MPPPOE_SUPPORT),1)
519        rm -f $(INSTALLDIR)/www/index_mpppoe.asp
520        rm -f $(INSTALLDIR)/www/Status_mpppoe.asp
521endif
522
523ifneq ($(CONFIG_VLANTAGGING),y)
524        rm -f $(INSTALLDIR)/www/Networking.asp
525        rm -f $(INSTALLDIR)/www/Networking.live.asp
526        rm -f $(INSTALLDIR)/www/help/HNetworking.asp
527endif
528
529ifneq ($(BACKUP_RESTORE_SUPPORT),1)
530        rm -f $(INSTALLDIR)/www/Backup_Restore.asp
531endif
532
533ifneq ($(CONFIG_UPNP),y)
534        rm -f $(INSTALLDIR)/www/UPnP.asp
535        rm -f $(INSTALLDIR)/www/UPnP.live.asp
536        rm -f $(INSTALLDIR)/www/help/HUPnP.asp
537endif
538ifneq ($(CONFIG_SUPERCHANNEL),y)
539        rm -f $(INSTALLDIR)/www/SuperChannel.asp
540endif
541ifneq ($(CONFIG_FREERADIUS),y)
542        rm -f $(INSTALLDIR)/www/FreeRadius.asp
543        rm -f $(INSTALLDIR)/www/FreeRadius.live.asp
544endif
545ifneq ($(CONFIG_POKER),y)
546        rm -f $(INSTALLDIR)/www/Poker.asp
547        rm -f $(INSTALLDIR)/www/Poker.live.asp
548        rm -f $(INSTALLDIR)/www/PokerEdit.asp
549        rm -f $(INSTALLDIR)/www/PokerEdit.live.asp
550endif
551ifneq ($(CONFIG_WOL),y)
552        rm -f $(INSTALLDIR)/www/Wol.asp
553        rm -f $(INSTALLDIR)/www/help/HWol.asp
554endif
555ifneq ($(CONFIG_PPTPD),y)
556        rm -f $(INSTALLDIR)/www/PPTP.asp
557        rm -f $(INSTALLDIR)/www/help/HPPTP.asp
558endif
559ifneq ($(CONFIG_L2TP),y)
560        rm -f $(INSTALLDIR)/www/index_l2tp.asp
561endif
562ifneq ($(CONFIG_AOSS),y)
563        rm -f $(INSTALLDIR)/www/AOSS.asp
564endif
565ifneq ($(CONFIG_BUFFALO),y)
566        rm -f $(INSTALLDIR)/www/SetupAssistant.asp
567        rm -f $(INSTALLDIR)/www/sas_*.asp
568endif
569ifneq ($(CONFIG_3G),y)
570        rm -f $(INSTALLDIR)/www/index_3g.asp
571endif
572
573ifneq ($(CONFIG_NOCAT),y)
574        rm -f $(INSTALLDIR)/www/splash.html
575        rm -f $(INSTALLDIR)/www/status.html
576endif
577ifneq ($(CONFIG_MSSID),y)
578        cp Status_Wireless.asp.v23 $(INSTALLDIR)/www/Status_Wireless.asp
579        cp Status_Wireless.live.asp.v23 $(INSTALLDIR)/www/Status_Wireless.live.asp
580endif   
581ifneq ($(CONFIG_WIVIZ),y)
582        rm -f $(INSTALLDIR)/www/Wiviz_Survey.asp
583        rm -f $(INSTALLDIR)/www/Wiviz.live.asp
584endif
585
586ifneq ($(CONFIG_OPENVPN),y)
587        rm -f $(INSTALLDIR)/www/Status_OpenVPN.asp
588endif
589
590ifneq ($(CONFIG_PPPOESERVER),y)
591        rm -f $(INSTALLDIR)/www/PPPoE_Server.asp
592        rm -f $(INSTALLDIR)/www/help/HPPPoE_Server.asp
593endif
594ifneq ($(CONFIG_MILKFISH),y)
595        rm -f $(INSTALLDIR)/www/Milkfish.asp
596        rm -f $(INSTALLDIR)/www/Milkfish_aliases.asp
597        rm -f $(INSTALLDIR)/www/Milkfish_database.asp
598        rm -f $(INSTALLDIR)/www/Milkfish_dynsip.asp
599        rm -f $(INSTALLDIR)/www/Milkfish_messaging.asp
600        rm -f $(INSTALLDIR)/www/Milkfish_phonebook.asp
601        rm -f $(INSTALLDIR)/www/Milkfish_siptrace.asp
602        rm -f $(INSTALLDIR)/www/Milkfish_status.asp
603        rm -f $(INSTALLDIR)/www/help/HMilkfish.asp
604        rm -f $(INSTALLDIR)/www/images/sipwerk.png
605endif
606ifneq ($(CONFIG_EOP_TUNNEL),y)
607        rm -f $(INSTALLDIR)/www/help/HEoIP.asp
608endif
609ifneq ($(CONFIG_3G),y)
610        rm -f $(INSTALLDIR)/www/index_3g.asp
611endif
612ifneq ($(CONFIG_SPUTNIK_APD),y)
613        rm -f $(INSTALLDIR)/www/Status_SputnikAPD.asp
614        rm -f $(INSTALLDIR)/www/Status_SputnikAPD.live.asp
615endif
616ifneq ($(CONFIG_CTORRENT),y)
617        rm -f $(INSTALLDIR)/www/P2P.asp
618endif
619#       All: These pages are not used
620        rm -f $(INSTALLDIR)/www/About_test.htm
621        rm -f $(INSTALLDIR)/www/Logout.asp
622        rm -f $(INSTALLDIR)/www/SysInfo.htm
623        rm -f $(INSTALLDIR)/www/graph_cpu.svg   
624       
625ifeq ($(CONFIG_RAMON),y)
626        $(MAKE) -C $(SRCBASE)/router/kromo/newmedia/ install
627else
628
629ifeq ($(CONFIG_SKYTRON),y)
630        $(MAKE) -C $(SRCBASE)/router/kromo/skytron/ install
631else
632ifeq ($(CONFIG_SKYTEL),y)
633        $(MAKE) -C $(SRCBASE)/router/kromo/skytel/ install
634else
635ifeq ($(CONFIG_ERC),y)
636        $(MAKE) -C $(SRCBASE)/router/kromo/erc/common/ install
637else
638        $(MAKE) -C $(SRCBASE)/router/kromo/common/ install
639endif
640endif
641endif
642endif
643endif
644
645ifeq ($(CONFIG_OMNI),y)
646        $(MAKE) -C $(SRCBASE)/router/kromo/omni-wifi/ install
647endif
648
649#ifeq ($(CONFIG_DDLAN),y)
650#       $(MAKE) -C $(SRCBASE)/router/kromo/ddlan/ install
651#endif
652
653
654
655        ../../../../tools/strip $(INSTALLDIR)/www/*.asp
656        ../../../../tools/strip $(INSTALLDIR)/www/*.htm
657        ../../../../tools/strip $(INSTALLDIR)/www/help/*.asp
658        ../../../../tools/process_langfile $(INSTALLDIR)/www/lang_pack/english.js $(INSTALLDIR)/www/lang_pack/*.js
659       
660ifeq ($(CONFIG_SER),y) 
661        $(MAKE) -C $(SRCBASE)/router/kromo/sipath/ install     
662endif
663       
664        ../../../../tools/write4 $(INSTALLDIR)/www/*.asp
665        ../../../../tools/write4 $(INSTALLDIR)/www/*.htm
666        ../../../../tools/write4 $(INSTALLDIR)/www/help/*.asp
667        cd $(INSTALLDIR)/www  &&  find . -iname "CVS" | xargs rm -rf
668        cd $(INSTALLDIR)/www  &&  find . -iname ".svn" | xargs rm -rf
669
670        cd $(INSTALLDIR)/www && $(SRCBASE)/../tools/webcomp . $(SRCBASE)/../tools/filelist *.asp *.svg *.htm *.css *.js help/*.asp help/*.png help/*.css images/*.gif images/*.png images/*.jpg images/*.ico images/*/*.png images/*/*.gif js/* lang_pack/* style/* style/*/* style/*/*/* style/*/*/*/* style/*/*/*/*/* > $(SRCBASE)/router/httpd/html.c
671ifeq ($(CONFIG_PWC),y)
672        rm -rf $(INSTALLDIR)/www/style/pwc/ddwrt
673        rm -rf $(INSTALLDIR)/www/style/pwc/default
674endif
675        cd $(INSTALLDIR)/www && rm -f *.asp *.svg *.htm *.css *.js help/*.asp help/*.png help/*.css images/*.gif images/*.png images/*.jpg images/*.ico style/*.css style/*.png style/*/* images/*/*.png images/*/*.gif js/* lang_pack/*
676
677#       cd $(INSTALLDIR)/www  &&  find . -name "*lzma" | xargs rm -f
678#../../../../tools/webcomp . filelist $(INSTALLDIR)/www/*.asp $(INSTALLDIR)/www/*.htm  > webrom.c
679        @true
680
681webcomp:
682
683clean:
Note: See TracBrowser for help on using the repository browser.