Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/modules/citrix/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2391 - (hide annotations) (download)
Thu Aug 27 07:38:22 2015 UTC (8 years, 9 months ago) by niro
File size: 1573 byte(s)
--added basic getopts to clarify and ease things, fixed broken config include and resulting missing variables and renamed STOREFRONT_STORE to DEFAULT_STOREFRONT_STORE in citrix.conf
1 niro 2178 include ../../../Makefile.inc
2    
3 niro 2354 SCRIPTS = citrix.client.class citrix.conf query-citrix-browser citrix-session citrix-serverlist storefront-resolver storefront-session storefront.client.class
4 niro 2178
5 niro 2352 SYSTEM_ICAROOT = /opt/ica-client
6     PNABROWSE_EXECUTABLE = $(SYSTEM_ICAROOT)/util/pnabrowse
7 niro 2259 PNABROWSE_CITRIX_BROWSER = ica
8     PNABROWSE_SERVER_EXCLUDE =
9     PNABROWSE_SESSION_EXCLUDE =
10 niro 2352 STOREBROWSE_EXECUTABLE = $(SYSTEM_ICAROOT)/util/storebrowse
11 niro 2391 DEFAULT_STOREFRONT_STORE = https://storefront
12 niro 2259
13     SCRIPT_SED_LINES += \
14 niro 2352 -e "s:@@SYSTEM_ICAROOT@@:$(SYSTEM_ICAROOT):g" \
15 niro 2259 -e "s:@@PNABROWSE_EXECUTABLE@@:$(PNABROWSE_EXECUTABLE):g" \
16     -e "s:@@PNABROWSE_CITRIX_BROWSER@@:$(PNABROWSE_CITRIX_BROWSER):g" \
17     -e "s:@@PNABROWSE_SERVER_EXCLUDE@@:$(PNABROWSE_SERVER_EXCLUDE):g" \
18 niro 2352 -e "s:@@PNABROWSE_SESSION_EXCLUDE@@:$(PNABROWSE_SESSION_EXCLUDE):g" \
19     -e "s:@@STOREBROWSE_EXECUTABLE@@:$(STOREBROWSE_EXECUTABLE):g" \
20 niro 2391 -e "s,@@DEFAULT_STOREFRONT_STORE@@,$(DEFAULT_STOREFRONT_STORE),g"
21 niro 2259
22 niro 2178 all: $(SCRIPTS)
23    
24     install: all
25 niro 2259 $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/mcore
26     $(INSTALL) -m0644 citrix.conf $(DESTDIR)/$(SYSCONFDIR)/mcore
27 niro 2178 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
28     $(INSTALL) -m0644 *.class $(DESTDIR)/$(MCORE_LIBDIR)/include
29 niro 2272 $(INSTALL) -m0755 query-citrix-browser $(DESTDIR)/$(MCORE_LIBDIR)
30     $(INSTALL) -m0755 citrix-session $(DESTDIR)/$(MCORE_LIBDIR)
31     $(INSTALL) -m0755 citrix-serverlist $(DESTDIR)/$(MCORE_LIBDIR)
32 niro 2352 $(INSTALL) -m0755 storefront-resolver $(DESTDIR)/$(MCORE_LIBDIR)
33 niro 2354 $(INSTALL) -m0755 storefront-session $(DESTDIR)/$(MCORE_LIBDIR)
34 niro 2178
35     clean:
36     rm -f $(SCRIPTS)
37    
38     .PHONY: all install clean