"Fossies" - the Fresh Open Source Software Archive

Member "linux_logo-6.0/Makefile" (9 May 2020, 2895 Bytes) of package /linux/misc/linux_logo-6.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 5.11_vs_6.0.

    1 ##############################################################
    2 #  Makefile for Linux Logo -- by Vince Weaver                #
    3 ##############################################################
    4 
    5 -include Makefile.default
    6 
    7 PROGNAME = linux_logo
    8 
    9 #ifeq ($(OS),IRIX64) 
   10 #   LDFLAGS += -lintl
   11 #endif
   12 
   13 ifeq ($(OS),FreeBSD)
   14     LDFLAGS += -lintl
   15 endif
   16 
   17 #
   18 # Installation location
   19 #
   20 INSTALL_BINPATH = $(DESTDIR)$(PREFIX)/bin
   21 INSTALL_MANPATH = $(DESTDIR)$(PREFIX)/share/man
   22 INSTALL_DOCPATH = $(DESTDIR)$(PREFIX)/share/doc
   23 
   24 #
   25 # Libsysinfo location
   26 #
   27 LIBSYSINFO_INCLUDE = -I$(LIBSYSINFO)
   28 LIBSYSINFO_LIBRARY = -L$(LIBSYSINFO)
   29 
   30 ifneq ($(XGETTEXT),)
   31     TRANSLATIONS = translations
   32 endif
   33 
   34 all:	Makefile.default parse_logos linux_logo $(TRANSLATIONS)
   35 
   36 Makefile.default:	 
   37 	ifneq($(CONFIGURE_RAN),1)
   38 	$(error Please run configure first)
   39 	endif
   40 
   41 translations:
   42 	cd po && $(MAKE)
   43 
   44 logos-all:	logo_config
   45 	find ./logos -type f -a ! -name banner.logo -a ! -name classic.logo >> logo_config
   46 	$(MAKE) all
   47 
   48 logo_config:
   49 	echo "./logos/banner.logo" > logo_config
   50 	echo "./logos/classic.logo" >> logo_config
   51 
   52 clean:	Makefile.default
   53 	rm -f *.o
   54 	rm -f linux_logo linux_logo-dyn parse_logos load_logos.h
   55 	rm -f *~
   56 	cd $(LIBSYSINFO) && $(MAKE) clean
   57 	cd po && $(MAKE) clean
   58 
   59 distclean: clean
   60 	cd $(LIBSYSINFO) && $(MAKE) distclean
   61 	rm -f Makefile.default logo_config
   62 
   63 linux_logo:	linux_logo.o load_logo.o ./$(LIBSYSINFO)/libsysinfo.a
   64 	$(CROSS)$(CC) $(LDFLAGS) -o linux_logo linux_logo.o load_logo.o $(LIBSYSINFO_LIBRARY) ./$(LIBSYSINFO)/libsysinfo.a 
   65 
   66 linux_logo_shared:	linux_logo.o load_logo.o ./$(LIBSYSINFO)/libsysinfo.a
   67 	$(CROSS)$(CC) $(CFLAGS) -o linux_logo-dyn linux_logo.o load_logo.o $(LIBSYSINFO_LIBRARY) -lsysinfo
   68 
   69 
   70 ./$(LIBSYSINFO)/libsysinfo.a:
   71 	cd $(LIBSYSINFO) && $(MAKE)
   72 
   73 parse_logos:	parse_logos.o load_logo_native.o
   74 	$(CC) $(LDFLAGS) -o parse_logos parse_logos.o load_logo_native.o
   75 
   76 parse_logos.o:	parse_logos.c logo_config
   77 	$(CC) $(CFLAGS) $(LIBSYSINFO_INCLUDE) -c parse_logos.c
   78 
   79 load_logos.h:	logo_config parse_logos
   80 	./parse_logos
   81 
   82 load_logo.o:	load_logo.c
   83 	$(CROSS)$(CC) $(CFLAGS) $(LIBSYSINFO_INCLUDE) -c load_logo.c
   84 
   85 load_logo_native.o:	load_logo.c
   86 	$(CC) $(CFLAGS) $(LIBSYSINFO_INCLUDE) -o load_logo_native.o -c load_logo.c	
   87 
   88 linux_logo.o:	linux_logo.c defaults.h load_logos.h
   89 	@echo Compiling for $(OS)
   90 	@echo Edit defaults.h to change Default Values
   91 	$(CROSS)$(CC) $(CFLAGS) $(LIBSYSINFO_INCLUDE) \
   92 		      -DLOCALE_DIR=\"$(PREFIX)/share/locale\" -DUSE_I18N=$(USE_I18N) \
   93 		      -c linux_logo.c
   94 
   95 install:	linux_logo
   96 	$(INSTALL) -c -m755 $(PROGNAME) -D $(INSTALL_BINPATH)/$(PROGNAME)
   97 	$(INSTALL) -c -D -m644 $(PROGNAME).1.gz $(INSTALL_MANPATH)/man1/$(PROGNAME).1.gz
   98 	cd po && $(MAKE) install
   99 
  100 install-doc:
  101 	$(INSTALL) -c -d -m 755 $(INSTALL_DOCPATH)/$(PROGNAME)
  102 	$(INSTALL) -c -p -m 644 *[A-Z] $(INSTALL_DOCPATH)/$(PROGNAME)
  103 
  104 # The old way of installing
  105 install-by-copying:
  106 	cp linux_logo $(PREFIX)/bin