5690d2f46bf6dedb53d41f888e290df0526f32b1kess#
f039160c5f69306fb11ca495284134be2c20c499nd# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
85cbddd6c5822962e3e30a5fa6f45ee4857bc467nd#
e57e674bd581bf1e801f749f92955bc330627409nd# This program is free software; you can redistribute it and/or modify
5690d2f46bf6dedb53d41f888e290df0526f32b1kess# it under the terms of the GNU General Public License as published by
acc36ab93565d2880447d535da6ca6e5feac7a70nd# the Free Software Foundation; either version 2 of the License, or
031b91a62d25106ae69d4693475c79618dd5e884fielding# (at your option) any later version.
031b91a62d25106ae69d4693475c79618dd5e884fielding#
031b91a62d25106ae69d4693475c79618dd5e884fielding# This program is distributed in the hope that it will be useful,
031b91a62d25106ae69d4693475c79618dd5e884fielding# but WITHOUT ANY WARRANTY; without even the implied warranty of
031b91a62d25106ae69d4693475c79618dd5e884fielding# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
031b91a62d25106ae69d4693475c79618dd5e884fielding# GNU General Public License for more details.
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# You should have received a copy of the GNU General Public License
acc36ab93565d2880447d535da6ca6e5feac7a70nd# along with this program; if not, write to the Free Software
acc36ab93565d2880447d535da6ca6e5feac7a70nd# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd
acc36ab93565d2880447d535da6ca6e5feac7a70ndPACKAGE=os-welcome
acc36ab93565d2880447d535da6ca6e5feac7a70ndVERSION=1.1.10
acc36ab93565d2880447d535da6ca6e5feac7a70nd
acc36ab93565d2880447d535da6ca6e5feac7a70ndtop_builddir=.
7db9f691a00ead175b03335457ca296a33ddf31bndtop_srcdir=.
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessSUBDIRS= po
5690d2f46bf6dedb53d41f888e290df0526f32b1kessDIST_FILES=
5690d2f46bf6dedb53d41f888e290df0526f32b1kessALL_FILES_BASE= \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess index.html \
27e2d99175bb5b51d2d5db347ab93a7d7dc4ebdekess $(null)
27e2d99175bb5b51d2d5db347ab93a7d7dc4ebdekess
5690d2f46bf6dedb53d41f888e290df0526f32b1kess# Let's avoid having multiple copies of images - we could do the same for css at
5690d2f46bf6dedb53d41f888e290df0526f32b1kess# some stage
5690d2f46bf6dedb53d41f888e290df0526f32b1kessALL_IMAGES = \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess html/C/images/ora_info_company.gif \
aaf75c27909404147cc0edb74491770e3741c195nd html/C/images/ora_solaris.png\
aaf75c27909404147cc0edb74491770e3741c195nd $(null)
aaf75c27909404147cc0edb74491770e3741c195nd
5690d2f46bf6dedb53d41f888e290df0526f32b1kessALL_STYLE = \
52bc21ad2115333a8295c5f3e4f328d7431e6989nd html/C/js/1p.js \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess html/C/css/master.css \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(null)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessALL_LINGUAS=C ar ca cs de el es fr it he hu id ja ko nl pl pt_BR ru sv sk zh_CN zh_HK zh_TW
5690d2f46bf6dedb53d41f888e290df0526f32b1kessALL_FILES= $(foreach ling, $(ALL_LINGUAS), $(addprefix html/$(ling)/, $(ALL_FILES_BASE)))
5690d2f46bf6dedb53d41f888e290df0526f32b1kessALL_FILES+= html/index.html $(ALL_IMAGES) $(ALL_STYLE)
636231328a7e1ed47b4d90d08eb9085ae5f8878end
5690d2f46bf6dedb53d41f888e290df0526f32b1kessDATA= \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-about \
f5960492823fd2ab19cbf9365cb9b6b3974c9148nd os-next-steps \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-about.desktop \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-next-steps.desktop
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessDIST_FILES= $(ALL_FILES) \
e57e674bd581bf1e801f749f92955bc330627409nd Makefile \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess ChangeLog \
b70358817fe7029e5db15756b7c26ac6b04a6904kess README \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-about.py \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-about.desktop.in \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-next-steps.py \
e57e674bd581bf1e801f749f92955bc330627409nd os-next-steps.desktop.in \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess images/next-steps.png \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess images/about-os-logo.png \
e57e674bd581bf1e801f749f92955bc330627409nd images/about-os-window-icon.png \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess images/about-os-background.jpg \
e57e674bd581bf1e801f749f92955bc330627409nd images/personalize.png \
e57e674bd581bf1e801f749f92955bc330627409nd images/participate.png \
c8a4906b8bae87c9b0d38ca00cd5ec20c0812740nd images/resources.png \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-icons-copy.sh \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess os-icons-copy.desktop
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
9294268d4d5ac750389453cca2639520a05df6d2kessNEXT_STEPS_DIR = /usr/share/os-about
5690d2f46bf6dedb53d41f888e290df0526f32b1kessWELCOME_DIR= /usr/share/doc/os-welcome
9294268d4d5ac750389453cca2639520a05df6d2kessDESKTOP_DIR= /usr/share/applications
9294268d4d5ac750389453cca2639520a05df6d2kessICON_DIR= /usr/share/pixmaps
5690d2f46bf6dedb53d41f888e290df0526f32b1kessBIN_DIR = /usr/bin
0a5a376b4b2a062a845527d3709604b1ef0f55e5kessLIB_DIR = /usr/lib/os-welcome
9294268d4d5ac750389453cca2639520a05df6d2kessDESTDIR=
9294268d4d5ac750389453cca2639520a05df6d2kessXDG_DIR= /etc/xdg/autostart
9294268d4d5ac750389453cca2639520a05df6d2kessINSTALL=/usr/sbin/install
5690d2f46bf6dedb53d41f888e290df0526f32b1kessINTLTOOL_MERGE=/usr/bin/intltool-merge
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessdefault: all
aaf75c27909404147cc0edb74491770e3741c195nd
aaf75c27909404147cc0edb74491770e3741c195nd%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
aaf75c27909404147cc0edb74491770e3741c195nd
aaf75c27909404147cc0edb74491770e3741c195ndpython_scripts: $(DATA)
aaf75c27909404147cc0edb74491770e3741c195nd
e57e674bd581bf1e801f749f92955bc330627409ndos-about: os-about.py
e57e674bd581bf1e801f749f92955bc330627409nd cp $< $@
e57e674bd581bf1e801f749f92955bc330627409nd
e57e674bd581bf1e801f749f92955bc330627409ndos-next-steps: os-next-steps.py
e57e674bd581bf1e801f749f92955bc330627409nd cp $< $@
e57e674bd581bf1e801f749f92955bc330627409nd
e57e674bd581bf1e801f749f92955bc330627409ndall: $(DATA)
e57e674bd581bf1e801f749f92955bc330627409nd @list='$(SUBDIRS)'; for subdir in $$list; do \
aaf75c27909404147cc0edb74491770e3741c195nd cd $$subdir && $(MAKE) $@; \
aaf75c27909404147cc0edb74491770e3741c195nd done;
5690d2f46bf6dedb53d41f888e290df0526f32b1kess @echo use make install DESTDIR=/path/to/proto to install to a proto area
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessinstall: $(DATA)
85cbddd6c5822962e3e30a5fa6f45ee4857bc467nd @list='$(SUBDIRS)'; for subdir in $$list; do \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess cd $$subdir && $(MAKE) $@; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess done;
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(WELCOME_DIR)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess for f in $(ALL_FILES); do \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess dir=`dirname $$f`; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess echo installing $$f in $$dir; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(WELCOME_DIR)/$$dir; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(WELCOME_DIR)/$$dir $$f; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess done
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(DESKTOP_DIR)
e57e674bd581bf1e801f749f92955bc330627409nd $(INSTALL) -m 644 -f $(DESTDIR)$(DESKTOP_DIR)/$$dir os-about.desktop
e57e674bd581bf1e801f749f92955bc330627409nd $(INSTALL) -m 644 -f $(DESTDIR)$(DESKTOP_DIR)/$$dir os-next-steps.desktop
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(BIN_DIR)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 755 -f $(DESTDIR)$(BIN_DIR)/$$dir os-about
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 755 -f $(DESTDIR)$(BIN_DIR)/$$dir os-next-steps
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(LIB_DIR)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 755 -f $(DESTDIR)$(LIB_DIR)/$$dir os-icons-copy.sh
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(XDG_DIR)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 755 -f $(DESTDIR)$(XDG_DIR)/$$dir os-icons-copy.desktop
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(ICON_DIR)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(ICON_DIR)/$$dir images/next-steps.png
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(ICON_DIR)/$$dir images/about-os-window-icon.png
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(DESTDIR)$(NEXT_STEPS_DIR)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(NEXT_STEPS_DIR)/$$dir images/about-os-logo.png
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(NEXT_STEPS_DIR)/$$dir images/about-os-window-icon.png
e57e674bd581bf1e801f749f92955bc330627409nd $(INSTALL) -m 644 -f $(DESTDIR)$(NEXT_STEPS_DIR)/$$dir images/about-os-background.jpg
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(NEXT_STEPS_DIR)/$$dir images/participate.png
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(NEXT_STEPS_DIR)/$$dir images/personalize.png
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(DESTDIR)$(NEXT_STEPS_DIR)/$$dir images/resources.png
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessuninstall:
5690d2f46bf6dedb53d41f888e290df0526f32b1kess for f in $(ALL_FILES); do \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess rm -f $(DESTDIR)$(WELCOME_DIR)/$$f; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess done
5690d2f46bf6dedb53d41f888e290df0526f32b1kess -test -d $(DESTDIR)$(WELCOME_DIR)/html/css && \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess /bin/rmdir -ps $(DESTDIR)$(WELCOME_DIR)/html/css
5690d2f46bf6dedb53d41f888e290df0526f32b1kess -test -d $(DESTDIR)$(WELCOME_DIR)/html/js && \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess /bin/rmdir -ps $(DESTDIR)$(WELCOME_DIR)/html/js
d5928c093177f61328dcaf10abef820f921c0b99nd rm -f $(DESTDIR)$(BIN_DIR)/os-about
5690d2f46bf6dedb53d41f888e290df0526f32b1kess rm -f $(DESTDIR)$(BIN_DIR)/os-next-steps
e57e674bd581bf1e801f749f92955bc330627409nd rm -f $(DESTDIR)$(DESKTOP_DIR)/os-about.desktop
e57e674bd581bf1e801f749f92955bc330627409nd rm -f $(DESTDIR)$(DESKTOP_DIR)/os-next-steps.desktop
2bf26d5e9aea5ff2920c989b790416c1f0dc4494nd -/bin/rmdir -ps $(DESTDIR)$(DESKTOP_DIR)
3ce99c71c1ee210a8d163ca2ed08ee3c6e0ae6a6nd -/bin/rmdir -ps $(DESTDIR)$(BIN_DIR)
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessclean:
e57e674bd581bf1e801f749f92955bc330627409nd rm os-about.desktop os-next-steps.desktop
5690d2f46bf6dedb53d41f888e290df0526f32b1kess rm os-about os-next-steps
e57e674bd581bf1e801f749f92955bc330627409nd
5690d2f46bf6dedb53d41f888e290df0526f32b1kessdistcheck:
e57e674bd581bf1e801f749f92955bc330627409nd @for f in $(DIST_FILES); do \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess test -f $$f && continue; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess echo ERROR: $$f not found; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess exit 1; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess done
5690d2f46bf6dedb53d41f888e290df0526f32b1kess
5690d2f46bf6dedb53d41f888e290df0526f32b1kessdist: distcheck
5690d2f46bf6dedb53d41f888e290df0526f32b1kess rm -rf $(PACKAGE)-$(VERSION); \
e57e674bd581bf1e801f749f92955bc330627409nd mkdir -p $(PACKAGE)-$(VERSION); \
e57e674bd581bf1e801f749f92955bc330627409nd list='$(SUBDIRS)'; for subdir in $$list; do \
e57e674bd581bf1e801f749f92955bc330627409nd if test "$$subdir" = .; then :; else \
42b4935758df9d0b97689036ae76bdaa02dea031nd test -d "$(PACKAGE)-$(VERSION)/$$subdir" \
e57e674bd581bf1e801f749f92955bc330627409nd || mkdir -p "$(PACKAGE)-$(VERSION)/$$subdir" \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess || exit 1; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess cd $$subdir && $(MAKE) $@; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess fi; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess done;
42b4935758df9d0b97689036ae76bdaa02dea031nd for f in $(DIST_FILES); do \
42b4935758df9d0b97689036ae76bdaa02dea031nd dir=`dirname $$f`; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess echo installing $$f in $$dir; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -d -m 755 $(PACKAGE)-$(VERSION)/$$dir; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess $(INSTALL) -m 644 -f $(PACKAGE)-$(VERSION)/$$dir $$f; \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess done ;\
5690d2f46bf6dedb53d41f888e290df0526f32b1kess /bin/tar cf - $(PACKAGE)-$(VERSION) | \
5690d2f46bf6dedb53d41f888e290df0526f32b1kess bzip2 -9 > $(PACKAGE)-$(VERSION).tar.bz2
aaf75c27909404147cc0edb74491770e3741c195nd rm -rf $(PACKAGE)-$(VERSION)
aaf75c27909404147cc0edb74491770e3741c195nd