🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #14989

Re: Acerca del archivo makefile

#14989
From: Santiago Romero
Date: Thu, 31 Aug 2000 17:55
81 lines
3184 bytes
El Thu, 31 Aug 2000 10:19:55 +0200, Antoni Merelles-Tormo escribi�:
>
>Alguien sabe d�nde puedo encontrar informaci�n (castellano ?)
>sobre el contenido del archivo makefile, qu� significa cada cosa
>de las que all� aparece, como constuirlos ...

 te pego un makefile de un programa mio a ver si asi te queda
 mas claro que hacen. Este implemente el make, make install, make
 clean, y make uninstall:

#!/bin/sh
# Randsig Makefile by Santiago Romero Iglesias.
CC = gcc
FILES = randsig.c
EXE = randsig
VERSION = -1.2
DESTBINPATH = /usr/bin/
DESTDOCPATH = /usr/doc/$(EXE)$(VERSION)
all:
	@echo MAKING ALL:
	@echo Compiling and linking $(EXE) executable ...
	@echo -e
	$(CC) -o $(EXE) $(FILES)
	@echo -e
	@exit

install:
	@echo INSTALL:
	@if [ ! -f $(EXE) ]; then \
	echo "First compile the program with using the make command."; \
	fi

	@echo Installing executable on $(DESTBINPATH) ...
	@if [ -f $(DESTBINPATH)$(EXE) ]; then \
	rm -f $(DESTBINPATH)$(EXE); \
	fi
	@cp $(EXE) $(DESTBINPATH)/

	@echo Installing documentation on $(DESTDOCPATH)...
	@if [ -d $(DESTDOCPATH) ]; then \
	rm -Rf $(DESTDOCPATH); \
	fi
	@mkdir $(DESTDOCPATH)
	@cp GNU_License signature.* install_examples $(DESTDOCPATH)
	@echo -e
	@exit

uninstall:
	@echo UNINSTALL:
	@echo Deleting the $(DESTBINPATH)$(EXE) binary ...
	@if [ -f $(DESTBINPATH)$(EXE) ]; then \
	rm -f $(DESTBINPATH)$(EXE); \
	fi
	@if [ -d $(DESTDOCPATH) ]; then \
	rm -Rf $(DESTDOCPATH); \
	fi
	@echo -e
	@exit

clean:
	@echo CLEAN:
	@echo Deleting the $(EXE) binary ...
	@if [ -f $(EXE) ]; then \
	rm -f $(EXE); \
	fi
	@echo -e
	@exit


 Lo que parecen espacios antes de cada linea en realidad han de ser
 tabuladores reales (nada de varios espacios, tabuladores de verdad).

 salu2.
-- 
Error de Windows 98- Se ha encontrado un rutina correcta!!
 _-----------------------------------------------------_
|  NoP / Compiler       --     sromero@unix-shells.com  |
|-------------------------------------------------------|
|  POWERED BY - Linux RedHat 6.0  -  Reg. User #74.821  |
|              http://web.jet.es/s.romero               |
 ~-----------------------------------------------------~
Technical Details
Message-ID: <slrn8qt70o.ms.sromero@compiler.dhis.org>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!supernews.com!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!fu-berlin.de!uni-berlin.de!va1-tp-1-u-0168.du.onolab.COM!not-for-mail
References: <39AE152B.F4333F14@uv.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,e82f0fb9d1fed054
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2000-08-31 11:30:33 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!supernews.com!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!fu-berlin.de!uni-berlin.de!va1-tp-1-u-0168.du.onolab.COM!not-for-mail
From: sromero@unix-shells.com (Santiago Romero)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Acerca del archivo makefile
Date: Thu, 31 Aug 2000 19:55:36 +0200
Lines: 81
Message-ID: <slrn8qt70o.ms.sromero@compiler.dhis.org>
References: <39AE152B.F4333F14@uv.es>
Reply-To: sromero@unix-shells.com
NNTP-Posting-Host: va1-tp-1-u-0168.du.onolab.com (62.42.44.169)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 967746586 11625310 62.42.44.169 (16 [39726])
User-Agent: slrn/0.9.6.2 (Linux)